Portable GCC
Portable GCC
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
I've successfully run GCC from flash drive using chroot. I don't know whether it suits you but it worked for me.
-
- Member
- Posts: 5513
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Portable GCC
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
GCC is also included in portable version of DevCPP http://orwelldevcpp.blogspot.de/Octocontrabass wrote:…but MinGW-w64 includes a perfectly usable GCC) and you should have a portable development environment.
50₰
Re: Portable GCC
MinGW is indeed a good compiler; however, people on this forum have strongly recommended using a cross compiler.
How would one go about setting the chroot up? debootstrap?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.
-
- Member
- Posts: 283
- Joined: Mon Jan 03, 2011 6:58 pm
Re: Portable GCC
Umm, what? MinGW is not a compiler...hwg wrote:MinGW is indeed a good compiler;
- Monk
Re: Portable GCC
Excuse the terminology. MinGW provides a good compiler.
-
- Member
- Posts: 5513
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Portable GCC
I specified MSYS because you need it to build a cross compiler.hwg wrote:MinGW is indeed a good compiler; however, people on this forum have strongly recommended using a cross compiler.