From: Raphael N. <rn...@we...> - 2006-05-04 09:24:55
|
Hi, > I'm converting my applications to SDCC PIC14, in one this use a macro > to calculate USART baudrate, when compile the code are returned > errors: > > error: missing definition for symbol "__mullong", required by "main.o" > error: missing definition for symbol "__divslong", required by > "main.o" I wondered why this "bug" did not show up earlier... The support routines for multiplication/division/modulus operations on data types longer than... hmm... a char (?) are not yet implemented and integrated into the PIC14 libraries. For now, you might be able to use the source files from the pic16 port (device/lib/pic16/libsdcc/{int,long}/*.c), compile them as part of your project and link them into the final binary. Once I find some time (I seem to have lost pretty much of it ;-)) I will augment the libraries. Having said this, the hint by Ken Jackson regarding prefetching the complex operations to compile-time is and remains the better approach, because 'long' arithmetics on the PICs becomes both large and slow. Regards, Raphael |