![]() ![]() You'd sure get a nice, small EXE file though. On Windows, that would mean that your installer must come with the proper libraries (DLLs) anyway and make sure they are on the target system before the program can be used. ![]() On Linux, that would mean larger executables, but the resulting ELF could be used on any uber-stripped down version of Linux you want without any grief. ![]() You can change these default behaviors if you want, but you must also be aware of the consequences. On windows, however, you cannot make any assumptions about what libraries the user has, and so a lot of stuff that is dynamically linked to the executable on linux must be statically bound to the windows executable. This is easy to do because Linux typically keeps libraries in relatively standard places. I know binaries arent that big on any of the linux boxes I use GCC on.Īnother thing not mentioned by that link is that Linux installations typically compile executables with dynamically linked libraries. I'm probably going to continue to use Visual C++ anyway (I'm sick of GCC tools - they're amazing but no longer new and exciting to me lol), but is there any way to knock down those file sizes, or is it some problem stemming from the windows ports of GCC? The one compiled with MinGW was almost 500kb!!! both IDEs/Compilers were using default settings, and both compiled the exact same code - only the standard C++ library was used, and it was relatively straightforward simple, clean code. Also, more majorly, the compiled executable was about 22Kb from VC++. ![]() and I downloaded and installed 2 C++ compilers (as well as a pascal compiler and some others but thats besides the point.)Īnyway onto the topic, I compiled one small page of C++ code that calculates state income tax, and Microsoft Visual C++ express compiled it all faster than Dev-C++ w/ mingw by a small margin. I'm getting back into my old hobby of programming (I quit for over a year after frustration). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |