OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 6:09 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Portable GCC
PostPosted: Fri Dec 04, 2015 4:41 pm 
Offline

Joined: Wed Nov 18, 2015 11:56 am
Posts: 22
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.


Top
 Profile  
 
 Post subject: Re: Portable GCC
PostPosted: Fri Dec 04, 2015 6:14 pm 
Offline
Member
Member

Joined: Tue Nov 08, 2011 11:35 am
Posts: 453
I've successfully run GCC from flash drive using chroot. I don't know whether it suits you but it worked for me.


Top
 Profile  
 
 Post subject: Re: Portable GCC
PostPosted: Sat Dec 05, 2015 11:41 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
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.


Top
 Profile  
 
 Post subject: Re: Portable GCC
PostPosted: Sun Dec 06, 2015 7:34 am 
Offline
Member
Member

Joined: Fri Mar 13, 2009 8:51 am
Posts: 90
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/

_________________
50₰


Top
 Profile  
 
 Post subject: Re: Portable GCC
PostPosted: Sun Dec 06, 2015 6:15 pm 
Offline

Joined: Wed Nov 18, 2015 11:56 am
Posts: 22
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?


Top
 Profile  
 
 Post subject: Re: Portable GCC
PostPosted: Sun Dec 06, 2015 7:44 pm 
Offline
Member
Member

Joined: Mon Jan 03, 2011 6:58 pm
Posts: 283
hwg wrote:
MinGW is indeed a good compiler;


Umm, what? MinGW is not a compiler...

- Monk


Top
 Profile  
 
 Post subject: Re: Portable GCC
PostPosted: Mon Dec 07, 2015 10:45 am 
Offline

Joined: Wed Nov 18, 2015 11:56 am
Posts: 22
Excuse the terminology. MinGW provides a good compiler.


Top
 Profile  
 
 Post subject: Re: Portable GCC
PostPosted: Wed Dec 09, 2015 1:15 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
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:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group