Octacone wrote:
After some deeper investigation, I found out that GCC is very scared of 64 bit numbers and that it relies on libgcc, which I don't have/don't want to have.
So what are my options? I do not want to port any third party code.
We've pretty much been here before. I don't understand how you find the use of GCC not "third party code", yet it's integral library is "third party code".
I mean, you realize GCC itself is code and it generates code for you. Some of the things it generates are "hard coded" into the GCC executables itself and some are in other files, like libgcc. The point I'm making is that the code that GCC uses to generate the code you want is split into more than one file and one of those files is libgcc.
What is the distinction you create between "gcc" and "libgcc"? It's part of the same thing. It seems like you want to use GCC provided division (eg. using GCC code for division), yet you don't want to use it because it's third party.
GCC also creates code for you for the assignments in your code, etc, I'd say that's pretty much as third party as the division. So, either you use GCC (or some other compiler, where they may have included the division in the main executable instead of a library) or you should start writing your own compiler if you don't want _any_ third party code.