Вопросы решились, всем спасибо.

Цитата Сообщение от Maarten Brock
You should use heap.s instead of _heap.c for the z80.
You should also call _sdcc_heap_init() for the z80.