Forum > General

FreePascal version of gcc and friends

(1/2) > >>

srvaldez:
why is FPC distributed with a version of gcc that's 25 years old?
I am guessing that the libraries that are included in the Units are about the same age? (maybe not)
what would it take to recompile FPC from source with a much more up-to-date version of the GNU tools and libraries ?

rvk:

--- Quote from: srvaldez on December 07, 2024, 10:56:45 am ---what would it take to recompile FPC from source with a much more up-to-date version of the GNU tools and libraries ?

--- End quote ---
gcc isn't distributed with the source of FPC.
So if you compile FPC from source then you can just use the latest gcc (and other utils and loo ibraries).

marcov:
On non Unix systems a dummy "gcc" is distributed to keep the resource compiler windres going. (which uses gcc for its limited preprocessing).

In time windres will be replaced by fpcres, and this will be gone.

Thaddy:

--- Quote from: srvaldez on December 07, 2024, 10:56:45 am ---why is FPC distributed with a version of gcc that's 25 years old?

--- End quote ---
Wait for it,
The reason is that newer versions of the preprocessor are way more restrictive and would not work. And I believe you mean the cpp part.
You can't use newer or latest versions of the preprocessor anymore to process arbitrary data.
So since fpc relies on that (it is not a gnu language), newer versions won't work.

If you take the time to read this https://gcc.gnu.org/onlinedocs/gcc-4.3.2//cpp/Differences-from-previous-versions.html with attention you would understand it.

rvk:

--- Quote from: Thaddy on December 07, 2024, 12:41:41 pm ---The reason is that newer versions of the preprocessor are way more restrictive and would not work. And I believe you mean the cpp part.

--- End quote ---
So how does this work on Linux when compiling from trunk?
There is no 'old' version distributed with trunk source.

Navigation

[0] Message Index

[#] Next page

Go to full version