Re: EDE - Personal Suggestions and Ideas

sandeep
2004-05-28T10:30:50Z

>>>You are right, but this is true only if you assume that the program
>>>don't try to mess with the segment registers by itself, or store in
>>>memory the values of the segment registers for using them later. That
>>>is what was being discussed.
>>That issue comes with user writing assembly programs and messing around.
> Wrong, because there is no such thing like 'C program' from the view point
> of the CPU. It runs machine code. It's ANOTHER thing that this machine
> code was produced by a C compiler/linker/etc, or it's 'hand coded' in
> assembly and was assembled by the assembler and/or linked/etc into CPU
> runnable machine code. My only point is that we should generally speaking
> that we have or have not this feature, and probably we should not use
> rules 'only C is allowed'.
My idea is - when program is loaded OS sets up segment registers for the
program. In the compiler generated program user is saved from headaches of
bothering about setting the segment registers etc. I hope you noticed that I had
also said - "AND guidelines can be laid for the assembly programmer" and any
other language is also fine as long as it takes away the headaches from
programmer. I am pro-solution that takes headaches away from programmer. Just
cutting off this here. :)

--
regards
sandeep
--------------------------------------------------------------------------
Loose bits sink chips.
--------------------------------------------------------------------------