Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThank you for the suggestions.
--- Quote Start --- I'm not sure what the "Altera Monitor Program" is but to answer the question yes those flags can edited. --- Quote End --- The Altera Monitor Program is a GUI program that is used to debug and compile C and assembly programs for the Nios II processor. It is intended for use by students. This is the environment in which I am testing this software for suitability. The Altera Monitor Program can be downloaded for free from here: http://www.altera.com/education/univ/software/monitor/unv-monitor.html --- Quote Start --- If the software is compiled from the command line chances are it is done through a shell script. Open the script and look for those flags and remove the ones you don't need. --- Quote End --- I assume the Monitor Program is utilizing the command line since the status window in the program displays command line instructions when I try to compile a C program. However, I have not been able to find any script or configuration file that references the "-mno-cache-volatile" flag. Perhaps it's being called directly from the Altera Monitor Program executable... --- Quote Start --- Ok now that being said if the mno-cache-volatile flag was being set then the application code might have been written to rely on that flag being present. What this means is that if you remove that flag you might need to modify the application so that instead of relying on volatile pointers accessing peripherals that those locations either be mapped to non-cacheable pointers or accessed via IOWR/IORD macros. You could also install the legacy Nios II tools (installed by default if you use the unified installer in 11.0) which comes with the gcc3 toolchain. --- Quote End --- At best I'm a beginner so feel free to correct me; it appears that the "-mbypass-cache" performs the same function as the "-mno-volatile-cache" flag. Since the "-mbypass-cache" flag is supported by GCC4, I assume a simple substitution on the command line will yield the same result. I considered installing the legacy Nios II tools, but am trying to avoid doing so. Version 11 of the Altera Monitor Program is a new release. In none of the documentation is it referenced that this version is dependent upon the legacy tools. I believe the use of a deprecated flag is just an oversight leftover from a previous software iteration.