diff options
author | John van Groningen | 2006-12-08 12:53:37 +0000 |
---|---|---|
committer | John van Groningen | 2006-12-08 12:53:37 +0000 |
commit | 6bd952d0a949317109c560b98d7d1d1db4a56b02 (patch) | |
tree | 89f465b93c6df612ba1c161f66b77b2606cf9a22 | |
parent | fix bug in copying record that is used more than once, (diff) |
port to linux
-rw-r--r-- | itrace.s | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |