> Heh. :)
> 
> P9P uses a separate file for each arch: plan9/src/libthread/$os-$arch.s
> 
> Inferno uses a separate dir. Some of the dirs have C code instead  
> since the asm is only an optimisation in this case.
> 
> I'd put a test in the mkfile: if cpuid-$objtype exists build that,  
> else.. well, either error out or build cpuid-port.c which in turn  
> either emits an error at runtime or perhaps more usefully outputs the  
> contents of #P/cputype.

all these examples either have a portable way of doing $function
or they implement it for each architecture.  i suppose one could
add arm support.  but at this point, i don't have any intention of
doing so.  be glad to take the code, though.

- erik

Reply via email to