Il giorno lunedì 23 aprile 2018 10:16:01 UTC+2, Gordon Henderson ha scritto:
> I have looked at compiling my BASIC to native code - and there is more
> or less a 1:1 relationship with a line of BASIC and a Line/Block of ASM
> - it's no-where near efficient as C though (and 'compiling' BASIC into
> C is just as easy and may actually result in faster code, but that's a
> job for another day)
It's not that C is inherently efficient, it's the compiler that optimize the
asm.
If you compile a C source code with optimization disabled, you'll get a
(almost) 1:1 relationship line of C : line of asm.
Bye Jack
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|