Jump to content
Sign in to follow this  
ppulle

Show Command Line Options In Linker

Recommended Posts

Hi,

Next release or so, could you get the linker to show all its command line options with a -h -? --help (or as a result of an error in options) please. Also both c2c and boost compilers (although it shows some, I'm not sure it shows all).

This is handy when trying to optimise the compile (as opposed to the code).

Thanks

Phil

PS: Thanks for the char * support in boostc....it's proving very handy in reducing some asm code that needed to do some very nasty byte juggling.

Share this post


Link to post
Share on other sites
..could you get the linker to show all its command line options with a -h -? --help ...

 

That's already been done for a long time already. If you run compiler or linker without any command line options they will display their help screen with all options listed:

 

D:\Program Files\SourceBoost>boostc.pic16.exe

BoostC Optimizing C Compiler Version 1.9.4 Beta (test build) (for PIC16 architecture)
http://www.picant.com/c2c/c.html
Copyright(C) 2004-2005 Pavel Baranov
Copyright(C) 2004-2005 David Hobday


Useage: boostc.pic16.exe [options] files

Options:
       -t name target processor (default name=PIC16F628)
       -On     optimization level (default n=1)
               n=0 - optimization turned off
               n=1 - optimization turned on
       -Wn     warning level (default n=1)
               n=0 - no warnings
               n=1 - some warnings
               n=2 - all warnings
       -i      debug inline code (default off)
       -d name define 'name'
       -v      verbose mode turned on (default off)


D:\Program Files\SourceBoost>linker.exe

BoostLink Optimizing Linker Version 1.9.3 Beta
http://www.picant.com/c2c/c.html
Copyright(C) 2004-2005 Pavel Baranov
Copyright(C) 2004-2005 David Hobday

Useage: linker.exe [options] files
Options:
-t name     target processor
-On         optimisation level 0-1 (default n=1)
            n=0 - no optimization
            n=1 - pattern matching and bank switching optimization on
-v          verbose mode
-d path     directory for project output
-p name     project (output) name for multiple .obj file linking
-ld path    directory for library search
-rb address ROM bottom address to use
-rt address ROM top address to use

Switches for making libraries:
-lib        make library file from supplied .obj and .lib files
-p name     project (library output file) name

 

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

oops...sorry my mistake....I was trying all sorts of things like -h --help /? to get up the list....must be the Linux in me!

 

..could you get the linker to show all its command line options with a -h -? --help ...

 

That's already been done for a long time already. If you run compiler or linker without any command line options they will display their help screen with all options listed:

 

D:\Program Files\SourceBoost>boostc.pic16.exe

BoostC Optimizing C Compiler Version 1.9.4 Beta (test build) (for PIC16 architecture)
http://www.picant.com/c2c/c.html
Copyright(C) 2004-2005 Pavel Baranov
Copyright(C) 2004-2005 David Hobday


Useage: boostc.pic16.exe [options] files

Options:
       -t name target processor (default name=PIC16F628)
       -On     optimization level (default n=1)
               n=0 - optimization turned off
               n=1 - optimization turned on
       -Wn     warning level (default n=1)
               n=0 - no warnings
               n=1 - some warnings
               n=2 - all warnings
       -i      debug inline code (default off)
       -d name define 'name'
       -v      verbose mode turned on (default off)


D:\Program Files\SourceBoost>linker.exe

BoostLink Optimizing Linker Version 1.9.3 Beta
http://www.picant.com/c2c/c.html
Copyright(C) 2004-2005 Pavel Baranov
Copyright(C) 2004-2005 David Hobday

Useage: linker.exe [options] files
Options:
-t name     target processor
-On         optimisation level 0-1 (default n=1)
            n=0 - no optimization
            n=1 - pattern matching and bank switching optimization on
-v          verbose mode
-d path     directory for project output
-p name     project (output) name for multiple .obj file linking
-ld path    directory for library search
-rb address ROM bottom address to use
-rt address ROM top address to use

Switches for making libraries:
-lib        make library file from supplied .obj and .lib files
-p name     project (library output file) name

 

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

ppulle,

 

Linker now changed so that -h, /h, -?, /? shows the help screen.

Will be in the next release :)

 

Regards

Dave

Share this post


Link to post
Share on other sites
Guest Joe

Problem is in XP where the application closes automaticly on exit.

 

You need to add a "press any key.." getch() to the code on exit, when executed without any params.

 

 

j

Share this post


Link to post
Share on other sites
Problem is in XP where the application closes automaticly on exit.

 

You need to add a "press any key.." getch() to the code on exit, when executed without any params.

 

Run it from a console window.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...