[Top][All Lists]

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

[Tinycc-devel] alloca for tcc - first cut

From: David A. Wheeler
Subject: [Tinycc-devel] alloca for tcc - first cut
Date: Tue, 08 May 2007 02:17:30 -0400 (EDT)

I've attached a first cut implementation of alloca for tcc.  This one allocates 
cleanly straight off the stack - no monkeying with malloc() at all.  It 
currently doesn't actually call the bounds-checking functions, though I know in 
principle what it needs to call.  Runs on Linux; _may_ work on Windows, but I 
suspect that there's some oddities involving page access that would need to be 
accounted for.

My thanks to those who have sent me constructive criticism!

--- David A. Wheeler

Attachment: alloca.S
Description: Binary data

Attachment: alloca.h
Description: Text Data

Attachment: testalloca.c
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]