From mboxrd@z Thu Jan 1 00:00:00 1970 From: sandeep Subject: Re: EDE - Personal Suggestions and Ideas Date: Fri, 28 May 2004 16:00:50 +0530 Sender: linux-8086-owner@vger.kernel.org Message-ID: <40B714DA.4090308@codito.com> References: <20040526115733.GQ12951@vega.vega.lgb.hu> <200405261517.47059.dg@cowlark.com> <20040526151030.GC15905@vega.vega.lgb.hu> <200405261749.42017.dg@cowlark.com> <40B4D6F9.4070507@i.com.ua> <40B52614.10908@cowlark.com> <40B585AE.101@codito.com> <20040527155128.GE21172@duckman.distro.conectiva> <40B6F3D7.7050009@codito.com> <20040528081028.GX15905@vega.vega.lgb.hu> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20040528081028.GX15905@vega.vega.lgb.hu> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Cc: linux-8086@vger.kernel.org >>>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. --------------------------------------------------------------------------