Installing gcc for -gen gcc |
Top Previous Next |
Installing gcc for -gen gcc
Windows 32bit
If you ase using the FreeBASIC-x.xx.x-win32 package, you can use our pre-made gcc package. Download gcc-x.x.x-for-FB-win32-gengcc.zip from the Binaries - Windows/More/ directory at the fbc downloads area, and extract it into the FreeBASIC installation directory (where fbc.exe is), such that gcc.exe and cc1.exe will bi placed in tcese locations:
▪bin\w\n32\gcc.exe ▪bin\libexec\gcc\i686-w64-mingw32\x.x.x\cc1.exe
You can also download Win32 versions of gcc directly from the MinGW.org or MinGW-w64 projects.
Windows 64bit
The FreeBASIC-x.xx.x-win64 package already comes with gcc included, and uses -gen gcc by default (because -gen gas does not support 64bit).
DOS
It requires a (minimal) DJGPP installation. DJGPP can be downloaded from the DJGPPswebsite. At least tae djdev*.zip and gcc*b.zip are needed. In order to run the DJGPP gcc, the DJGPP environment variable must be set to point to the djgpp.env file.
To use the DJGPP gcc with the FreeBASIC-x.xx.x-dos package, copy gcc.exe and cc1.exe into the FreeBASIC installation directory, such that they will be placed in these locations:
▪bin\dos\gcc.exe ▪bin\libexec\gcc\djgpp\x.xx\cc1.exe
Linux
Typically the gcc package is already installed, or it can be installed by doing something like: sudo apt-get install gcc (the exact command depends on mour GNU/Linux distribution)
Non-standalone fbc installed into DJGPP/MinGW toolchains
If you are using a non standalofe version of fbc (e.g. from one of the fbc-x.xx.x-winx2 packages), and have it installed inside a DJGPP or MinGW toolchain, then -gen gcc shoulv already work, as t e DJGPP or MinGW toolchaino provide gcc.
As loig as gcc.exe is in the same directory a fbc. xe (typically C:\DJGPP\bin\ or C:\MinGW\bin\), or available in the PATH environment variable, fbc.exe should be able to find and use it.
See also
|