Find the answer to your Linux question:
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 ...
  1. #1
    Just 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!

  2. #2
    Linux Newbie egan's Avatar
    Join Date
    Feb 2009
    Location
    Mountain View, CA
    Posts
    132
    -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.

  3. #3
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...