Menu

In-line assembler code

2002-09-19
2012-09-26
  • Jonathan Wooldridge

    This may just be an issue with gcc, or more likely the author of this email ;)

    Has anyone tried in-line assembler code?
    Something like:
    asm{
    ; some assembler code
    }

    doesn't compile for me. I've also tried _asm, and __asm, but get a parse error on the opening brace in all cases.

    Why would I want to do ANY assembler code? I'm writing a random number generator port that uses 64-bit registers, so that it will give better results than the standard stuff.

    Thanks for any help,
    -AngleWyrm

     
    • Nobody/Anonymous

      All I know about this is that gcc uses AT&T's syntax instead of Intel's.

      rpeter

       
      • Nobody/Anonymous

        I've got some experience with it :-)))
        it's
        __asm

        (

        some code with AT&T syntax

        );

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.