pawn-lang / compiler

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Other
301 stars 71 forks source link

Can I use 32-bit cells on 64-bit only processors? #699

Closed markany-swma closed 2 years ago

markany-swma commented 2 years ago

Issue description:

I tried to compile the Pawn compiler with PAWN_CELL_SIZE is 32 on Apple M1 Series chip, But it doesn't compiled and ran. Because amx_Callback and some other features require that cell size is same or more than function pointer size.

Is there have any way to use 32-bit cells(build the compiler and run it) on 64-bit only(like Apple M1 Series) architectures? Or the 32-bit cells only available when 32-bit compiled Pawn compiler?

Workspace Information:

Y-Less commented 2 years ago

Yes. I made a solution and posted it in some other MP mod's issue, but the official compuphase repo has a better solution.