dassouki
dassouki

Reputation: 6366

Is there a C/C++ project similar to portablepython?

I've searched the internet for this but couldn't find anything useable, I was just wondering if there exists a C/C++ project similar to portablepython?

EDIT

I guess the question becomes: is there a portable C/C++ compiler I can stick onto a usb key?

Upvotes: 1

Views: 137

Answers (3)

Nano
Nano

Reputation: 1407

There is tcc which has precompiled binaries for windows which you can use from your usb stick. tcc has no support for c++ though.

Upvotes: 1

Eli Bendersky
Eli Bendersky

Reputation: 273566

Python is an interpreter that can run "scripts" (.py files). Therefore portablepython makes sense - if you don't want to install Python everywhere, but still want to run the small Python files. This helps if the target PC doesn't have Python installed (or you can't even do it because of privileges).

For C/C++ this doesn't make much sense as these are compiled languages. Just compile them to executables and you have your "portability".

If you need to "program C/C++ anywhere", just place your favorite compiler and code editor on a USB stick, and you're done. portableapps is a nice place to find portable (as in "USB carry-able" applications), and it has this link for a portable C++ IDE/Compiler.

P.S. Python programs can also be bundled into (rather large) executables using tools like py2exe and PyInstaller.

Upvotes: 3

MAK
MAK

Reputation: 26586

PortablePython is a python interpreter, and as Eli Bendersky pointed out, you don't need an interpreter to run programs written in C or C++ once it is compiled. OTOH, if what you are looking for is a compiler that does not need installation, you can have a look at Dev-C++ portable . (I am assuming you need this to run on windows as most Unix-like OSes have gcc anyway).

Upvotes: 1

Related Questions