Wanna learn Assembly?

This is a discussion on Wanna learn Assembly? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; >But it does not help me in building application... The need for assembly is application dependent. I wonder if most ...

  1. #16
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >But it does not help me in building application...

    The need for assembly is application dependent. I wonder if most programmers can really add something useful to the results a modern optimizing C compiler gives.

    But anyway, going back to the original question of the thread, there is nothing bad in wanting to understand how a microprocessor works and how to use its instruction set. In fact, it is never bad to learn.

  2. #17
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144
    >>The need for assembly is application dependent. I wonder if most programmers can really add something useful to the results a modern optimizing C compiler gives. <<

    This is all I was trying to say...the "waste of time" comment was hyperbole.

    >>But anyway, going back to the original question of the thread, there is nothing bad in wanting to understand how a microprocessor works and how to use its instruction set. In fact, it is never bad to learn.<<

    couldn't agree more...in fact i think this is where the usefulness of assmebly should end for most programmers...

    >>Would you like to explain to me how your great higher-level languages are made? Hint, they use a language that rhymes with bassembly.<<

    yeah sure...most of the major compilers and interpreters are coded in C/C++...GCC, VC++, python, perl,...i could go on, but i think you get the point.

  3. #18
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    What you can do with Assembly, is write your own Operating System. That's what I'm doing with it...
    1978 Silver Anniversary Corvette

  4. #19
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    I too want to lean ASM but i am not able to have a good start at it..

  5. #20
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >What you can do with Assembly, is write your own Operating
    System.

    That's just one of the applications. I usually only use it when having to do low level stuff. For the other things I trust my compiler and I the libraries I'm using are highly optimized. At least, it is what their documentation say.

  6. #21
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Originally posted by mix0matt
    >>Would you like to explain to me how your great higher-level languages are made? Hint, they use a language that rhymes with bassembly.<<

    yeah sure...most of the major compilers and interpreters are coded in C/C++...GCC, VC++, python, perl,...i could go on, but i think you get the point. [/B]
    Did you read what I said? I said the languages themselves, not the compilers. i.e. C++, C, I could go on, but I think you get the point.

  7. #22
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144
    >>Did you read what I said? I said the languages themselves, not the compilers. i.e. C++, C, I could go on, but I think you get the point.<<

    maybe i'm the moron here, but can you explain to me how you "make" a language...
    THIS IS NOT JUST A CHRONICLING OF THINGS WE HAVE DONE IN THE PAST BUT OUR RISE TO POWER.

  8. #23
    Disagreeably Disagreeable
    Join Date
    Aug 2001
    Posts
    711
    >maybe i'm the moron here, but can you explain to me how you "make" a language...<

    "Making" a language simply involves writing a specification for programmers to go by. To get anywhere with the language though you'll need a compiler or another tool to translate your language source code into machine language. The compiler is defined _around_ the language, not the language around the compiler. Although, Basic is a different story...

  9. #24
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    >> Although, Basic is a different story... <<

    Really? How so? I dont' really know the history of Basic...
    1978 Silver Anniversary Corvette

  10. #25
    Registered User billholm's Avatar
    Join Date
    Apr 2002
    Posts
    225
    Oh no! I think I'm going to fart... PROOOT!!!
    All men are created equal. But some are more equal than others.

    Visit me at http://www.angelfire.com/my/billholm

  11. #26
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    A programming language is just a mathematical concept. Designing a programming language requires developing an alphabet and grammar.

    To make the language usable, you need to create tools like a compiler. The compiler translates your language to a language your machine understands, which is machine language. Or you can compile to assembly and let an assembler translate the assembly to machine language.

  12. #27
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    >> Or you can compile to assembly and let an assembler translate the assembly to machine language. <<

    This would probably be easiest, but who's here writing their own language? I'd support you the whole way. That's pretty neat. When I get to it in my OS dev, I'm probably going to have to write my own API and, maybe, my own language ...
    1978 Silver Anniversary Corvette

  13. #28
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175

    Lightbulb

    Hello! Get a grip!...

    Sorry but you guys need some harsh words!

    If we all took the same approach to programming we'd all be using VB. Slow, Weak but easy as hell to learn and maintain.

    ASM gives you complete control, did you know C uses the stack to hold local varribles? Did you know how slow this is! I can use lots of techniques to avoid this (such as using special purpose regs as general purpose regs when i dont need them), C will just fire ahead without an e-thought. Byte for Byte any well writen ASM program will beat a C program hands down. Hech, if C's so high and mighty why, then, does just about every C compiler support in-line assembly!

    Your line of argument reminds me of a car advert thats been on tv alot. "Why invent the light bulb when candles are OK." Come on guys your just being plain sad!
    VC++ 6

  14. #29
    Registered User Compuboy's Avatar
    Join Date
    Apr 2002
    Posts
    16

    Gah?

    &nbsp;&nbsp;I really can't understand anyone who says that ASM is now obsolete, which a lot of people here seem to think. I just couldn't believe my eyes!

    &nbsp;&nbsp;ASM is at the heart and center of everything. Machine code and ASM are directly interchangable. That means that as long as there is machine code, there will always be assembly. No OS can ever be written without assembly and most decent programs have a good deal of ASM in them, as well.

    &nbsp;&nbsp;I recently downloaded the new version of DJGPP. It may well be state-of-the-art or whatever, but it's completely changed its naming conventions and has just got too complicated for its own good. I've been forced to start work on my own little C-to-ASM converter. What's the programming world coming to?

  15. #30
    Registered User Mario's Avatar
    Join Date
    May 2002
    Posts
    317
    >> Hech, if C's so high and mighty why, then, does just about every C compiler support in-line assembly!

    It seems to me rather ridicule to be discussing Assembly as the only and one answer to all the problems in life in a C/C++ forum.

    I could understand it on an Assembly forum by people that never took the time to know exactly what C/C++ can do for them. Here? Well here it just looks silly.

    >> Your line of argument reminds me of a car advert thats been on tv alot. "Why invent the light bulb when candles are OK." Come on guys your just being plain sad!

    Well, conversely, yours seem a bit like "Why using jets, if cheaper cars can get you there?"... it may be cheaper. It may be powerful. It may allow for sight-seeing. But it's damn slow to code and hard to debug in comparison.
    What is asked these days when coding a project? I'm sure I don't need to tell you. But nonetheless, do it as quickly as possible. Do it as I asked. Do it so that code can be easily changed/upgraded so that we can add new features on future (payable) versions.

    Now do that in Assembly.

    Note: I actually prefer cars to planes, mind you. But I'll leave the comparison at it.

    [edit]Some embarrassing typos. Corrected...[/edit]
    Last edited by Mario; 06-18-2002 at 06:08 PM.
    Regards,
    Mario Figueiredo
    Using Borland C++ Builder 5

    Read the Tao of Programming
    This advise was brought to you by the Comitee for a Service Packless World

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. wanna learn all about network programming
    By manav in forum Networking/Device Communication
    Replies: 3
    Last Post: 03-24-2008, 02:45 AM
  2. Assembly question
    By linucksrox in forum Tech Board
    Replies: 13
    Last Post: 04-08-2007, 07:41 PM
  3. Assembly....
    By Victor in forum Linux Programming
    Replies: 8
    Last Post: 12-28-2004, 01:46 AM
  4. 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
  5. Wanna Learn...
    By Timer in forum Windows Programming
    Replies: 12
    Last Post: 07-19-2002, 02:33 PM

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