Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12419 Discussions

Generating elf from assembly code

Honored Contributor II

Hello guys! 

Is there any manual or tutorial about generating elf file (.elf) from assembly code (.s) in Eclipse. I can't find any documentation about this way of programming.
0 Kudos
1 Reply
Honored Contributor II

If you feed a .s file into gcc it will just assemble it. 

IIRC if you use .S then it is also processed by the C pre-processor (which is often useful). 


Depending on what you are actually doing, writing the code in C might generate good enough object code (and is easier). 


OTOH I wouldn't even try to use an IDE's build scheme for anuthing complex. 

Write your own makefile and linker script.