Results 1 to 3 of 3
Trying to figure out what these flags do, I have searched and can't seem to figure out this line:
Code:
-Wa,-alh= "$(BUILD_PROM_DIR)/`echo "$@" | sed -e "s/\.$(OBJEXT)/\ .lst/g"`",-L
Any help ...
- 07-22-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 27
What do these GCC flags do?
Trying to figure out what these flags do, I have searched and can't seem to figure out this line:
Code:-Wa,-alh= "$(BUILD_PROM_DIR)/`echo "$@" | sed -e "s/\.$(OBJEXT)/\ .lst/g"`",-L
Any help is appreciated!
- 07-22-2009 #2
-Wa,<option>,... passes an assembler option, which happen to be the below
-alh emits a listing to stdout with high-level and assembly source
-L retains local symbols in the symbol table
I'm not sure why -alh=<stuff> is there, but the aforementioned stuff translates to:
$(BUILD_PROM_DIR) environment variable presumably containing a directory
/
`echo $@ echoes all the positional parameters (similar to $*)
sed -e but pass those parameters to sed, which is to execuate the below
"s/\.$(OBJEXT)/\ .lst/g" substitute the extension contained in $OBJEXT with ".lst" globally
So hopefully this helps you because I have too little information to work with. By the way, I figured out those flags by searching in the gcc and as manpages, respectively.
- 07-22-2009 #3Just Joined!
- Join Date
- Jul 2009
- Posts
- 27
Thanks a lot! I don't have access to a shell right now, but I will try searching the manpages next time


Reply With Quote