[syslinux] Syslinux malloc

TenThumbs tenthumbs at cybernex.net
Mon Feb 9 04:26:19 PST 2004


Murali Krishnan Ganapathy wrote:
> 
> I just implemented a simple malloc for a 16-bit COMBOOT application. I
> will surely be interested in seeing your implementation. We should
> probably starting building an implementation of all useful C routines.
> 

I wanted something what would work in both 16 and 32 bit environments. I'll
attach a demo tarball. The allocator is rather primitive but it's small.


> Ideally, we should be able to create an include file "comboot.h", which
> declares all the useful C routines, and defines them to generate an
> error message. That way one can use any of the C libraries as long as
> they include comboot.h as well. If the C function cannot work under
> comboot, then there will be an error generated.
> 
> [omitted]
> 
> - Murali

Since this code isn't running in the system environment, I would just create
my own header files with the usual names and tell the compiler to use mine and
ignore the system ones.

-- 
Sun
    2004-02-09 12:13:47.711 UTC (JD 2453045.009580)
    X  =   0.003583325, Y  =  -0.002344825, Z  =  -0.001089334
    X' =   0.000003837, Y' =   0.000006105, Z' =   0.000002487


More information about the Syslinux mailing list