OpenQNX :: The QNX Community Portal

May 13, 2008 - 10:00 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 56 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
rahul_mot
Post subject: QNX Assembler  PostPosted: Mar 14, 2008 - 03:41 PM
New Member


Joined: Sep 14, 2007
Posts: 2

Hello All,

I have written a mixed C and Assembly code for x86 processor using calling conventions. I am using automatically generated Makefile from QNX C project for building executable file. When I build the project, I am getting errors because of assembly file not being assembled. I think this problem is due to not invoking the Assembler properly. I have saved the assembly file in *.asm format. Can anyone please let me know the settings/options I have to set in the QNX momentics IDE to invoke the assembler along with the compiler and linker. I actually want to invoke the assembler using automatically generated make file.

Thanks in Advance,
Rahul
 
 View user's profile Send private message  
Reply with quote Back to top
rgallen
Post subject: Re: QNX Assembler  PostPosted: Mar 14, 2008 - 07:01 PM
QNX Master


Joined: Jul 11, 2002
Posts: 557

rahul_mot wrote:
Hello All,

I have written a mixed C and Assembly code for x86 processor using calling conventions. I am using automatically generated Makefile from QNX C project for building executable file. When I build the project, I am getting errors because of assembly file not being assembled. I think this problem is due to not invoking the Assembler properly. I have saved the assembly file in *.asm format. Can anyone please let me know the settings/options I have to set in the QNX momentics IDE to invoke the assembler along with the compiler and linker. I actually want to invoke the assembler using automatically generated make file.

Thanks in Advance,
Rahul


Rahul,

QNX uses the GNU toolchain, and therefore the assembler is gasm. As you may, or may not, be aware gasm does not assemble MASM style assembly code (usually associated with a .asm extension).

This is simply a function of GNU vs. MASM (microsoft assembler), and is unrelated to QNX itself. If the code you have is written in MASM, you'll need to port it to gasm.

You may recall that the "big thing" about 'C' when it came out in 1972 was that it was portable assembler. Now you know why this was a "big thing" Sad
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.