r-lyeh-archived / ltalloc

LightweighT Almost Lock-Less Oriented for C++ programs memory allocator
BSD 3-Clause "New" or "Revised" License
164 stars 16 forks source link

compile ltalloc for android (arm) error #14

Closed digitalgust closed 6 years ago

digitalgust commented 6 years ago

define PAUSE asm volatile("pause" ::: "memory")

above this line code throw error , ltalloc.c:111:103: error: unrecognized instruction mnemonic

it is intel instruct, so i change it to :

include //for sched_yield

//#define PAUSE asm volatile("pause" ::: "memory")

define PAUSE sched_yield()

then build sucess and look like run fine .

r-lyeh commented 6 years ago

thanks :D