From 3270f4407748d8ebc52abae76735a8e88f8a0f1d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 18 Nov 2015 04:32:08 +0100 Subject: update todo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- TODO | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/TODO b/TODO index 65bd67f..0cf962d 100644 --- a/TODO +++ b/TODO @@ -25,6 +25,17 @@ __attribute__((malloc)), to append a string or character. LOW PRIORITY: debugging support (16 p435) _GNU_SOURCE, system-dependant + void* extalloca(void* p, size_t extent) :: extend alloca-allocation + requires that nothing has been allocated to the stack since p. + difficult to implement as a function. + as a macro: + ({ void* q = alloca(extent); (long int)q < (long int)p ? q : p; }) + void* dealloca(size_t amount) + deallocate the last amount bytes allocated to the stack + void* zalloca(size_t size) + difficult to implement as a function. + as a macro: + ({ void* p = alloca(size); memset(p, 0, size); }) crt0 with cpu cycle count printing -- cgit v1.2.3-70-g09d2