Inline ASM ???????

This is a discussion on Inline ASM ??????? within the C Programming forums, part of the General Programming Boards category; Well is it good to learn inline assemble like what are the advantages????...And yeah if u guys can explain alil ...

  1. #1
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    Question Inline ASM ???????

    Well is it good to learn inline assemble like what are the advantages????...And yeah if u guys can explain alil bit about the language assembly ..like i have heard about asm 86x80 something like that alil explanation will help... and yeah some good books on it ...like assembly for C programmers ...

    DaIn
    "I wish i could wish my wishs away"

    "By indirections find directions out" -- William Shakespears

    "Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"

    Mizra -> love = Death...
    RDB(Rocks yooo)..

    http://www.cbeginnersunited.com

    Are you ready for the Trix ???

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    66
    Well is it good to learn inline assemble like what are the advantages????...And yeah if u guys can explain alil bit about the language assembly ..like i have heard about asm 86x80 something like that alil explanation will help... and yeah some good books on it ...like assembly for C programmers ...
    I guess it's good to learn if you wanna speed up your programs, but from what I've seen, all inline assembly does is give you quick access to the hardware if your operating system allows it. I think it's half voodoo and half luck, if you look at an assembly program then you'll understand what I mean. I don't know of any good books, I've only seen two different ones at the bookstore but I can't remember the names, try amazon.

    Cheers!

  3. #3
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    http://webster.cs.ucr.edu/AoA.html
    This book is good I think.

    There are limited actual uses for assembly. The real
    reason why most be program in it is too learn about
    hardware/compilers/operating systems and then you might
    be able to get better performance than the compiler.

  4. #4
    Registered User
    Join Date
    Jul 2002
    Posts
    66
    There are limited actual uses for assembly. The real
    reason why most be program in it is too learn about
    hardware/compilers/operating systems and then you might
    be able to get better performance than the compiler.
    Question - When writing an operating system, isn't it required that stuff like the boot loader has to be written in assembly? Or can it be written in optimized C and still work?

    Cheers!

  5. #5
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    I've never programmed an os before But the boot loader
    on intel systems must be programmed in assembly because
    you have to fiddle with the bios interupts and the system
    starts up in 16 bit. Once the boot up is done then there's
    special intel instructions that you would use for task switching etc. If you look at the code for linux -- most of it's c.

  6. #6
    Visionary Philosopher Sayeh's Avatar
    Join Date
    Aug 2002
    Posts
    212
    Writing code is the easy part. Other than for performance, callbacks, and esoterics with the O/S, the other useful place to know assembly basics is when you're DEBUGGING.

    Sometimes, it's important to know exactly what the CPU is getting, in order to be able to find a problem.
    It is not the spoon that bends, it is you who bends around the spoon.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 10:42 PM
  2. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 01:26 AM
  3. Inline asm
    By wavering in forum C Programming
    Replies: 2
    Last Post: 01-29-2002, 02:42 AM
  4. Inline asm - I love it!
    By wavering in forum C Programming
    Replies: 2
    Last Post: 01-08-2002, 02:19 PM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 06:05 PM

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