Restored from previous forum. Originally posted by Danilo.
> - a assembler prog (a PB-prog is such a prog) will be
> always faster as any language like Visual Basic, Delphi,
> C, IBasic....
All real programming languages generate executables
that have machine code in it that gets executed directly only.
They mostly dont generate it directly, but by using an assembler...
see below.
Also Delphi and C and ... and ... but not IBasic.
(interpreters are also binaries, but they interpret
the actual program (that can be built-in in the exe))
If you dont know how compilers work,
dont talk about it.
For your information:
In Delphi the Assembler is called BASM
and Microsoft uses its own Assembler MASM.
Some other (Unix?) compilers use for example AS.
Watcom C++ had its own assembler called WASM.
LCCwin32 has its own built-in assembler and
can, like PureBasic, generate ASM-output.
The difference: In PB the commandline switch
is "/COMMENTED", where it is "-S" in LCCwin32
and other C-Compilers.
Yes, many C-compilers can do it this way.
Nearly every compiler on market translates
to ASM internally and assembles the result
by using an external or internal assembler.
Thats because its much easier than compiling
from HLL to binaries directly.
The assembler can also be built-in directly
in the compiler - so you dont see this tool.
The whole process is hidden and you dont know
that it works this way (but i know - sorry

).
Its the same with PureBasic. The general
compile-process is hidden to the user.
Optionally you can make an output (/COMMENTED)
of the generated ASM file.
Well, thats a nice feature...
> Assembler is the fastest language, that i know.
Assembly language is machine language, made readable
and easier useable for humans.
The "Assembler" is the tool that assembles.
> And for time critical operations is the ASM the best way.
> This is known since a long time.
More known is that programming in general has
always to do with optimization.
ASM (machine language) is not only needed for
time-critical operations ... its needed for
everything. Without machine language there
wouldnt be any executable... there wouldnt be
computers like we use every day.
People that dont care that a program runs
200 or 1000 times slower with one language
where it runs at full speed with other languages
are not real programmers. They are wannabies or kids...
For kids its not a problem, because they still learn.
There is no chance for wannabies, because they think
they know everything - but they know nothing.
It wouldnt be _that_ bad for some projects and
a HLL programmer if one compiler produces code
that is 1 or 2 times slower than optimal.
But 200 or 1000 times slower is absolutely unacceptable
for every real programmer.
Just use the tools that generate 200 or 1000 times
faster executables... there are many hundred compilers
available that generate "fast" results.
Some can also make "very fast" results.
I heared IBasic has support for 3D.
Does that mean that a 3D-game written with IBasic
runs at 1 Frame per 10 seconds, where it runs with
30 fps by using real compilers ??
I begin to wonder why most of what you say
in the forums is totally nonsense...
cya,
...Danilo
(registered PureBasic user)