I agree with Prime Production i also dont like idea that FB translate to C.
If Fb currently generate asm code that is better becose is for sure faster.
And many other compilers generate asm code not C code.
v1ctor said:
Just to make it clear, FB won't just translate BASIC to C. Gcc is used as a high-level assembler, not a single C header is ever included
emitter <> translator
As stated many many many times already, this is NOT a FreeBASIC to C translator. Emitted C code is NOT human-readable, as with the currrent GAS (ASM) emitter. NOT a translator.
The GAS emitter is for x86 only. What about other platforms? x86_64? Should FreeBASIC be stuck on x86 forever?
And what about taking advantage of the already existing gcc optimizations? You'd better benchmark it before telling what is faster.
http://www.freebasic.net/temp/rel-juliarings-gas.exe
http://www.freebasic.net/temp/rel-juliarings-gcc.exe
http://www.freebasic.net/temp/rel-julia ... cc-sse.exe
I did, and the C version is faster. In this particular example, C with Pentium 4 + SSE is about 3 times faster than GAS in my system.
I don't like the idea of making FreeBASIC a BASIC to C translator. Might as well use C.
v1ctor said:
Just to make it clear, FB won't just translate BASIC to C. Gcc is used as a high-level assembler, not a single C header is ever included
Can you code using pure ASM as well? Again, NOT a translator.
Sorry, but I guess you guys have no idea what you're complaining about.