From 6bd952d0a949317109c560b98d7d1d1db4a56b02 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Fri, 8 Dec 2006 12:53:37 +0000 Subject: port to linux --- itrace.s | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/itrace.s b/itrace.s index fdcffea..797d6e8 100644 --- a/itrace.s +++ b/itrace.s @@ -30,7 +30,11 @@ .global write_profile_information .global write_profile_stack +#ifdef LINUX + .global @malloc +#else .global @allocate_memory +#endif .global __STRING__ .global writeFC .global writeFI @@ -216,7 +220,11 @@ allocate_function_profile_record: push a1 pushl $512*FunctionProfile +#ifdef LINUX + call @malloc +#else call @allocate_memory +#endif add $4,sp test d0,d0 @@ -328,7 +336,11 @@ stack_not_initialised: init_profiler: pushl @ab_stack_size +#ifdef LINUX + call @malloc +#else call @allocate_memory +#endif add $4,sp test d0,d0 -- cgit v1.2.3