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.
Does someone know what advantage the C++ option brings to Realview. I see in the help it mentions the Rogue Wave C++ library.
I notice that there are a number of LIB folders. ie. ARM\LIB which contains CAL.lib and CALFP.lib, is this the library used by the legacy CARM compiler?
Then I see ARM\LIB\RV30\ARMLIB is this the library used by Realview compiler? Then I see ...RV30\CPPLIB which sounds like a C++ lib?
I am just curious as to what is available as the help section doesn't seem to spell it out, if the C++ library is there can I use it, if so how?
I posted a bit to quickly. I downloaded a gnu grep from unxutils.sourceforge.net/
1. It works. I found that grep "Total R" pulls the 3x wanted lines with 1x grep call
2. But I have a problem if I use file names like "abc def.map" Grep wont work so I would have to change to single word file names or use underscore.
3. Main question. Is there a way to make the grep independent of a project folder? I cannot remember how to tell the batch file to take a path. ie put the batch and grep in say c:\grepit call it from Keil/arm/etc so that it operates on the required .map file. Otherwise I have to copy the tools to each project file path.
It works great though.
"2. But I have a problem if I use file names like "abc def.map" Grep wont work so I would have to change to single word file names or use underscore."
It should work if you enclose the filename in double quotes, or just say *.map
You might even find that abc*.map also works...
"Is there a way to make the grep independent of a project folder?"
Like any other External command, can't you just make sure it's in your PATH?
Put quotes around it, or do the sane thing: stay clear of blanks in filenames: tey're a pest. People using strictly only GUI tools are mostly unaware of the side effects, but trust an old commandline jockey: blanks in filenames are really more trouble than they're worth.
3. Main question. Is there a way to make the grep independent of a project folder?
Any external tool can be invoked with a full path, unless I'm very much mistaken. I.e. you can make the call
d:\where\ever\it\is\grep.exe "Total R" project.map
Or put a directory holding your personal collection of such tools (including grep) in the PATH once and for good --- that's what it exists for.
"blanks in filenames are really more trouble than they're worth."
Absolutely!
Let's just have it again, one more time:
blanks in filenames are really more trouble than they're worth.
Thanks, this worked for me
C:\tools\ grep.exe and grep.bat grep.bat contains c:\tools\grep.exe "Total R" *.map
In Uvision output after make box c:\tools\Grep.bat
produces output like :-
User command #1: c:\tools\Grep.bat C:\Program Files\Keil\ ARM\PROJECTS\Hello>c:\tools\grep.exe "Total R" *.map Total RO Size (Code + RO Data) 4936 (4.82kB) Total RW Size (RW Data + ZI Data) 1480 (1.45kB) Total ROM Size (Code + RO Data + RW Data)4952 (4.84kB) "Hello.axf" - 0 Error(s), 0 Warning(s).
I tried playing with XP's system variables but Path didn't seem to help (or I got it wrong). What happened to autoexec.bat? Wonder if there is there a way to get c:\tools\Grep.bat into run user program#1 by default?
Set the path:
Start->Control Panel->System-> Advanced Tab "Environment Variables"
Hey... thanks for the GREP tips. I just realized that the uV3 IDE now supports executing user defined programs both BEFORE and AFTER doing the build. Now that's handy.
Thanks KEIL !!
Leslie, are you replying to my question, or something else? - If so thanks!
Wonder if there is there a way to get c:\tools\Grep.bat into run user program#1 by default?