We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How to pass input data file as argument in main(argc, argv) standard C style. I'm using RealView compiler toolchain for ARM. Is there any tutorial for doing this exercise?
Thanking you for reading and replying in advance.
Sorry, but I don't understand you there.
You can't pass any parameters to main() for an embedded project. And there are no command line allowing redirection of input/output streams.
If you want your program to read data, you must decide what peripherial interface to use.
Then you need to write code that handles this hardware.
Finally, you can decide if you should use your new code directly, or if you should map your code so printf() et al can emit and scanf() et al can read.
Have you looked at all the samples you got installed together with the compiler? And the manuals for the tools?