Re: Great(?) idea [was: Re: [Sablevm-developer] Porting SableVM to ia64 done in 3 (lazy) hours]
Brought to you by:
egagnon
From: Grzegorz P. <gr...@se...> - 2002-10-12 12:31:58
|
W li=B6cie z pi=B1, 11-10-2002, godz. 21:37, Etienne M. Gagnon pisze:=20 > On Fri, Oct 11, 2002 at 09:28:22PM +0200, Grzegorz Prokopski wrote: > > We could have all Linux arches supported in 24 hours! ;-) > > Why shouldn't we use it? >=20 > As long as we add a "#ifdef LINUX" (or the equivalent), we could do it. But there's nothing wrong it supporting all Linux arches out-of-the box, even without any manual intervention to add new ones. We can autodetect almost all we need. The current approach is that we have separate pieces of code, that define: - assembler parts - integer/float type sizes - page size, alignment size and helper values based on them Would you apply a patch that makes all of the above automagic? I mean: - I can autodetect if this cmpxchg in asm/system.h is available (I already have the patch using autotools) - I can autodetect which types use for which needed sizes (I already have the patch using autotools) - I can autodetect page size (getpagesize), siezeof(void*) and the helper values (see that small testing app I sent yesterday) [I need to assume sth. about alignment unfortunatelly, like that it's equal to machine word size] If we had this, we could have all Linux arches "just" working. If there will be other arches, maybe non-linux that we want to support - we can always have #else - don't we? The same stands for some better support for certain architectures. But the aim is "This program can be compiled on any Linux machine if it's dependencies can be fulfilled" Do you think you would apply such patch if I prepared complete solution? > Is there an equivalent for "iflush()"? Then we would get the > inline-threaded engine to work too... :) I haven't looked at it yet. Regards GBP |