Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Problem with runnig the first program.

programming

This topic has been archived. This means that you cannot reply to this topic.
13 replies to this topic

#13 Poe

Poe

    CC Resident

  • Advanced Member
  • PipPipPipPip
  • 81 posts

Posted 16 October 2014 - 11:12 PM

you can assemble intel syntax programs with:

 

 

gcc -masm=intel myprogram.s

 

GCC uses AT&T by default, i don't know much more :)


Edited by Poe, 16 October 2014 - 11:13 PM.

"Portability is for those who can't write new programs" - Linus Torvalds


#14 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts

Posted 17 October 2014 - 10:38 AM

No, it's an NASM program so none of the directives will work and some of the syntax will explode. You need to use NASM to compile it and GCC to link it.


sudo rm -rf / && echo $'Sanitize your inputs!'





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download