User Activity

  • Posted a comment on discussion Help on Small Device C Compiler (SDCC)

    Posted on the mailing list, no reply so far ... Meanwhile I help me out using this (crude) script: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15#!/bin/bash fn=$(basename --suffix=.c $1) if ! [ -f ${fn}.c ] then echo "File ${fn}.c does not exist" exit 1 fi # Call SDCC but compile only to assembler output sdcc -c --std-sdcc99 -mpic14 -p12f675 --use-non-free --no-pcode-opt --no-extended-instructions ${fn}.c # Remove string "global _main" in assembler output sed -n -e "s/global[[:space:]]\+_main//1;w ${fn}.ASM"...

  • Posted a comment on discussion Help on Small Device C Compiler (SDCC)

    Hi! Sorry, this was maybe a little bit misleading. Yes, the linking process causes a problem. Compile only: sdcc -c -mpic14 -p12f675 --use-non-free pic12f675test.c pic12f675test.asm:79:Message[1304] Page selection not needed for this device. No code generated. Calling sdcc -V shows how the linker is called: gplink -I/usr/local/bin/../share/sdcc/lib/pic14 -I/usr/local/share/sdcc/lib/pic14 -I/usr/local/bin/../share/sdcc/non-free/lib/pic14 -I/usr/local/share/sdcc/non-free/lib/pic14 -I/usr/local/bin/../share/sdcc/lib/pic14...

  • Posted a comment on discussion Help on Small Device C Compiler (SDCC)

    Hi there, I just downloaded and compiled 4.1.0 on my (32 Bit) Fedora machine. All went well. But I cannot compile any PIC14 source. # sdcc --version SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/gbz80/tlcs90/ez80_z80/z80n/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15 4.1.0 #12072 (Linux) The source: #include <pic12f675.h> void main (void) { return; } The SDCC call: # sdcc -mpic14 -p12f675 --use-non-free pic12f675test.c pic12f675test.asm:79:Message[1304] Page selection not needed for this...

View All

Personal Data

Username:
tcfkat
Joined:
2021-03-08 13:26:39

Projects

  • No projects to display.

Personal Tools