Assembly Programming

This is a discussion on Assembly Programming within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Even though it would be great to program everything in assembly, in today's technology we sacrifice speed for efficiency. That's ...

  1. #16
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    Even though it would be great to program everything in assembly, in today's technology we sacrifice speed for efficiency. That's why Visual Basic is so popular: it's quick to build. Efficiency increases with levels of abstraction. The down side is we create overhead. Thankfully there are languages like C that provide good efficiency without sacrificing too much speed. Like every other programming language, assembly is a tool and the more tools you have the better you can acomplish the task at hand.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  2. #17
    Registered User seditee's Avatar
    Join Date
    Apr 2002
    Posts
    82
    can you go into graphics mode via asm?
    lebios

  3. #18
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    you can do anything in asm, it just approaches impossibility

    i know a little asm, mostly 8086 stuff. i've written a char to int translator and an int to char translator using nasm. that's the biggest i've gone.

    i've got a question to the experienced ones: why does it take 5 bytes of code
    Code:
    mov ax,4c00h
    int 21h
    to do this:
    Code:
    int main() {
    return 0;
    }
    which takes 12k of space?

  4. #19
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    A c program automatically links the c library. If I write assembly code to print a string using printf and linking in the c library I get similar executable sizes.

  5. #20
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    but this program doesn't link to any libraries

  6. #21
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    Most c compilers automaticaly link the standard c library even
    if you don't include the appropriate header files or call the functions

  7. #22
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    Most compilers have commands which will stop them from linking the standard libraries.
    It will be in your docs.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  8. #23
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    It's not finished yet, but I'm doing my own assembler. http://www.geocities.com/CGIASM It shuld be up and running by the end of August.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Learning Assembly
    By mrafcho001 in forum Tech Board
    Replies: 5
    Last Post: 03-12-2006, 05:00 PM
  2. C to assembly interface
    By Roaring_Tiger in forum C Programming
    Replies: 4
    Last Post: 02-04-2005, 03:51 PM
  3. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 02:11 PM
  4. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  5. C,C++,Perl,Java
    By brusli in forum C Programming
    Replies: 9
    Last Post: 12-31-2001, 03:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21