S
Skybuck Flying
Hi,
I think I understand now a bit better what the difference is between a c
compiler and a pascal compiler.
For example:
When compiling source code with a pascal compiler. The pascal compiler will
simply stop when it is missing an implementation for a procedure or
whatever.
The c compiler however will simply continue compiling even if the
implementation for the headers/prototypes are missing.
The c linker will then report a big list of link errors.
Both methods have benefits and drawbacks. The pascal compiler is more
simple... it allows one to simply proceed from error to error until it
completely compiles and links.
The drawback of the c compiler might be the suspended error reporting...
it's a bit wacky... since one can not jump to the location where the stuff
is missing ?
or maybe one can... it's a bit wacky...
Though I can clearly see a benefit for a c compiler since it simply compiles
even though the implementation is completely missing.
One could later even make different implementations and simple re-use the
already compiled stuff and link against it.
So one can end up linking different kind of stuff against the same compiled
C file.
I think this is correct though I never really tried it.
Are there any good examples where this C/link freedom is used ?
Does a pascal compiler have the same link freedom ? ( meaning prototype
available but implementation missing )
I think not... ?
Bye,
Skybuck.
I think I understand now a bit better what the difference is between a c
compiler and a pascal compiler.
For example:
When compiling source code with a pascal compiler. The pascal compiler will
simply stop when it is missing an implementation for a procedure or
whatever.
The c compiler however will simply continue compiling even if the
implementation for the headers/prototypes are missing.
The c linker will then report a big list of link errors.
Both methods have benefits and drawbacks. The pascal compiler is more
simple... it allows one to simply proceed from error to error until it
completely compiles and links.
The drawback of the c compiler might be the suspended error reporting...
it's a bit wacky... since one can not jump to the location where the stuff
is missing ?
or maybe one can... it's a bit wacky...
Though I can clearly see a benefit for a c compiler since it simply compiles
even though the implementation is completely missing.
One could later even make different implementations and simple re-use the
already compiled stuff and link against it.
So one can end up linking different kind of stuff against the same compiled
C file.
I think this is correct though I never really tried it.
Are there any good examples where this C/link freedom is used ?
Does a pascal compiler have the same link freedom ? ( meaning prototype
available but implementation missing )
I think not... ?
Bye,
Skybuck.