GLBasic forum

Main forum => GLBasic - en => Topic started by: xteraco on 2010-Feb-28

Title: Toolchaining question
Post by: xteraco on 2010-Feb-28
Hi, I'm new to the forum.  8)

I'm trying to figure out how GLBasic works so i can set up my own toolchain in C++. I'd like to build binaries for the gp2x WiZ. I'm using M$ Windows 7.

Any way... There is a line in the setup ini that I don't understand...

strip="%GLBASIC%Compiler\platform\WIZ\Bin\strip.exe" --strip-all

The thing I'm not sure of is what is strip, and what does it mean to --strip-all.

Also if how to do this has been explained somewhere before could you please point me in that direction?

Thanks in advance!
-xteraco
Title: Re: Toolchaining question
Post by: MrTAToad on 2010-Feb-28
strip removes symbolic information (and other information not required for execution) from an executable file with a view to conserving disk space for production (that is, already debugged) programs. The Windows executable headers indicate how much data should be in an executable file. strip removes all data that should not be there. Thus it should successfully remove any symbol table; however, any executable which uses data outside its executable image, fails.

Talking of which, it would be nice to be able to select one or more platforms which could then be compiled one after the other, without the need to manually switch platforms.
Title: Re: Toolchaining question
Post by: Kitty Hello on 2010-Mar-01
what are you trying to do? Replacing the toolchain is not too easy.
Title: Re: Toolchaining question
Post by: xteraco on 2010-Mar-01
I want to build a toolchain for the WiZ. I want to use C++ and Windows 7.
Title: Re: Toolchaining question
Post by: Kitty Hello on 2010-Mar-01
Yes, but... why would you?
Title: Re: Toolchaining question
Post by: Moru on 2010-Mar-01
I might be ignorant for developing for the WIZ but for GP2X I just hit the compile button, transfer the file to my SD-card, load it into the GP2X and run it. Can it be that much different on the WIZ?
Title: Re: Toolchaining question
Post by: MrTAToad on 2010-Mar-01
I have a feeling he wants to use C to interface with the GLBasic libraries from his own programs...
Title: Re: Toolchaining question
Post by: Kitty Hello on 2010-Mar-02
he can. No need for a different compiler.
Title: Re: Toolchaining question
Post by: xteraco on 2010-Mar-03
Nope. I was trying to learn how toolchains are built using GLBasic as my example.