Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

.elf file explained?

Hello!

I have just watched the ALTERA Embedded Design Flow video tutorial and at some point at the end it is explained how the user can program a flash memory with:

- A boot loader

- The FPGA .sof image

- The .elf file

and I was wondering what is the structure of a sof file (less important for me) and most important what is the structure of an .elf file.

I mean after the compilation there are stack, heap, code and data segments? And what does each of them represent? Also Is the elf file directly copied as is into the flash or is it restructured before saved to flash (in other words does Nios execute the actual elf file as it is?)?

22 Replies