On 5/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> im talking from the kernel writer point of view. and im most familiar
> with the x86. c assumes there is a system already running. and most
> probably that system is brought up using assembly coded initialization
> code.
No one said that assembler is obsolete, only deprecated. Like many
"we have always done it this way" paradigms, it dies hard and it is
difficult to persuade "aficionados" that they would be better off
programming at a higher level and reserve their skills for those rare
occasions where they are ahead of the compilers or, as you rightly
point out, where there are no alternatives, such as in setting up the
stack or posting a kernel trap.
i see.
i understand now that this thread is about putting asm in the system
library or not.
of course not. its a bitch to optimize.
compiler technology has advanced by leaps and bounds. nowadays
compilers are even made to schedule the machine instructions and do
branch prediction. some massively parallel processors cant even be
optimally hand programmed by assembler anymore.