Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIs it possible to pass arguments to the main() function in NIOS II SBT
Hello, Just a generic question. I am using the NIOS II SBT eclipse for an application code and I would like to pass some values to the main() function. The syntax for a C program main() funct...
Altera_Forum
Honored Contributor
13 years agoYou need to ask yourself where any such parameters would actually come from in a 'real' system.
Remember this is all code that is expected to be loaded at 'boot' time onto an fpga. IMHO Altera have added far too much code to give standalone programs what appears to be a POSIX (Unix-like) execution environment. This is also responsible for the 'hello world' program being 60+k, not a few 100 bytes.