Re: New GCC compiler for 8086 cpu's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 19, 2017 at 3:55 PM, Alan Cox <gnomes@xxxxxxxxxxxxxxxxxxx> wrote:
> It doesn't work because you can take the address of a stack based object,
> and not only that the compiler will do so itself internally when
> generating code.
>

Of course, this is the kind of problems I expect to happen. To prevent
this case, one rule of the simple set of rules would be "Use automatic
variables only within the function where it is defined". Other may be
"Take the address of objects only if the object is defined in the DS
segment". It will be necessary a heap to allocate data in DS for you
example. The question is: using an adequate kmalloc() and a simple set
of rules, can we get a functional kernel?
--
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Linux ia64]     [DCCP]     [Linux for ARM]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux