Page 1 of 1

Portable GCC

Posted: Fri Dec 04, 2015 4:41 pm
by hwg
Is there any way to make a portable GCC, e.g. through static linkage and a custom PATH? Portable here would mean that the compiler could be run totally from a flash drive.

Re: Portable GCC

Posted: Fri Dec 04, 2015 6:14 pm
by Nable
I've successfully run GCC from flash drive using chroot. I don't know whether it suits you but it worked for me.

Re: Portable GCC

Posted: Sat Dec 05, 2015 11:41 am
by Octocontrabass
Do you need something for Windows? MSYS is supposed to be pretty portable, although you may have to get clever with its fstab to make it work. Combine that with GCC (I like to use the one from here, but MinGW-w64 includes a perfectly usable GCC) and you should have a portable development environment.

Re: Portable GCC

Posted: Sun Dec 06, 2015 7:34 am
by MasterLee
Octocontrabass wrote:…but MinGW-w64 includes a perfectly usable GCC) and you should have a portable development environment.
GCC is also included in portable version of DevCPP http://orwelldevcpp.blogspot.de/

Re: Portable GCC

Posted: Sun Dec 06, 2015 6:15 pm
by hwg
MinGW is indeed a good compiler; however, people on this forum have strongly recommended using a cross compiler.
Nable wrote:I've successfully run GCC from flash drive using chroot. I don't know whether it suits you but it worked for me.
How would one go about setting the chroot up? debootstrap?

Re: Portable GCC

Posted: Sun Dec 06, 2015 7:44 pm
by FallenAvatar
hwg wrote:MinGW is indeed a good compiler;
Umm, what? MinGW is not a compiler...

- Monk

Re: Portable GCC

Posted: Mon Dec 07, 2015 10:45 am
by hwg
Excuse the terminology. MinGW provides a good compiler.

Re: Portable GCC

Posted: Wed Dec 09, 2015 1:15 am
by Octocontrabass
hwg wrote:MinGW is indeed a good compiler; however, people on this forum have strongly recommended using a cross compiler.
I specified MSYS because you need it to build a cross compiler. :wink: