Problem with intrinsic_ldi() and SDCC compiler

ZX80, ZX 81, ZX Spectrum, TS2068 and other clones
Post Reply
Stefan123
Member
Posts: 85
Joined: Fri Oct 21, 2016 7:57 am

Problem with intrinsic_ldi() and SDCC compiler

Post by Stefan123 »

When I try to compile a program containing a call to intrinsic_ldi() in intrinsic.h (e.g. intrinsic_ldi(dest, src, 256)) using the SDCC compiler, I get the following error with the latest z88dk snapshot:

zcc +zx -vn -SO3 -startup=30 -clib=sdcc_iy --max-allocs-per-node200000 test.c -o test -create-app
Error at file XXX line xxx: symbol '____sdcc_ldi_256' not defined

However, this works fine with the SCCZ80 compiler.
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

Thanks Stefan. Typo fixed.
Post Reply