Hi Hongwei,
On Sat, Sep 13, 2014 at 3:03 PM, gmhwxi <gmh...@gmail.com <javascript:>> wrote:
The C code in lcd.dats can be moved into CATS/lcd.cats.
Umm…
$ make
avr-gcc -g -Wall -Os -mmcu=atmega2560 -DF_CPU=16000000UL -std=c99
-D_XOPEN_SOURCE -D_ATS_CCOMP_EXCEPTION_NONE -D_ATSTYPE_VAR_SIZE=0X000F
-Wno-unused-variable -Wno-unused-label -Wno-unused-but-set-variable
-Wno-implicit-function-declaration -I. -I/home/kiwamu/src/ATS-Postiats
-I/home/kiwamu/src/ATS-Postiats/ccomp/runtime -I…/…//_arduino
-I…/…//_dummy -c -o wiring_digital.o wiring_digital.c
patsopt -o DATS/main_dats.c -d DATS/main.dats
avr-gcc -g -Wall -Os -mmcu=atmega2560 -DF_CPU=16000000UL -std=c99
-D_XOPEN_SOURCE -D_ATS_CCOMP_EXCEPTION_NONE -D_ATSTYPE_VAR_SIZE=0X000F
-Wno-unused-variable -Wno-unused-label -Wno-unused-but-set-variable
-Wno-implicit-function-declaration -I. -I/home/kiwamu/src/ATS-Postiats
-I/home/kiwamu/src/ATS-Postiats/ccomp/runtime -I…/…//_arduino
-I…/…//_dummy -c -o DATS/main_dats.o DATS/main_dats.c
In file included from DATS/main_dats.c:41:0:
/home/kiwamu/src/ATS-Postiats/prelude/CATS/filebas.cats: In function
‘atspre_fileref_open_exn’:
/home/kiwamu/src/ATS-Postiats/prelude/CATS/filebas.cats:177:8:
warning: assignment makes pointer from integer without a cast [enabled
by default]
filr = fopen((char*)path, (char*)fm) ;
^
avr-gcc -g -Wall -Os -mmcu=atmega2560 -DF_CPU=16000000UL -std=c99
-D_XOPEN_SOURCE -D_ATS_CCOMP_EXCEPTION_NONE -D_ATSTYPE_VAR_SIZE=0X000F
-Wno-unused-variable -Wno-unused-label -Wno-unused-but-set-variable
-Wno-implicit-function-declaration -I. -I/home/kiwamu/src/ATS-Postiats
-I/home/kiwamu/src/ATS-Postiats/ccomp/runtime -I…/…//_arduino
-I…/…//_dummy -Wl,-Map,main.map -o main.elf wiring_digital.o
DATS/main_dats.o
DATS/main_dats.o: In function `main’:
/home/kiwamu/src/ATS-Postiats/ccomp/runtime/pats_ccomp_runtime.c:(.text+0x4):
undefined reference to `PMVerr’
/home/kiwamu/src/ATS-Postiats/ccomp/runtime/pats_ccomp_runtime.c:(.text+0x12):
undefined reference to `PMVerr’
/home/kiwamu/src/ATS-Postiats/ccomp/runtime/pats_ccomp_runtime.c:(.text+0x20):
undefined reference to `PMVerr’
/home/kiwamu/src/ATS-Postiats/ccomp/runtime/pats_ccomp_runtime.c:(.text+0x2e):
undefined reference to `PMVerr’
/home/kiwamu/src/ATS-Postiats/ccomp/runtime/pats_ccomp_runtime.c:(.text+0x48):
undefined reference to `PMVerr’
DATS/main_dats.o:/home/kiwamu/src/ATS-Postiats/ccomp/runtime/pats_ccomp_runtime.c:(.text+0x5a):
more undefined references to `PMVerr’ follow
collect2: error: ld returned 1 exit status
…/…//Makefile.common:30: recipe for target ‘main.elf’ failed
make: *** [main.elf] Error 1
$ grep -r PMVerr DATS/main_dats.c|head -5
ATSINSstore(ATSSELfltrec(ATSderef(ATSPMVcastfn(LCD_takeout_struct,
atstkind_type(atstype_ptrk), ATSPMVrefarg0(ATSPMVcastfn(castvwtp0,
atstype_boxed,
PMVerr(“/home/kiwamu/src/arduino-mega2560-ats/DATS/lcd.dats:
1942(line=55, offs=30) – 1965(line=55, offs=53)”)))),
postiats_tyrec_1), postiats_tyrec_1, atslab__rs_pin),
ATSPMVcastfn(cast, atstkind_t0ype(atstype_uint8), arg0)) ;
ATSINSstore(ATSSELfltrec(ATSderef(ATSPMVcastfn(LCD_takeout_struct,
atstkind_type(atstype_ptrk), ATSPMVrefarg0(ATSPMVcastfn(castvwtp0,
atstype_boxed,
PMVerr(“/home/kiwamu/src/arduino-mega2560-ats/DATS/lcd.dats:
1942(line=55, offs=30) – 1965(line=55, offs=53)”)))),
postiats_tyrec_1), postiats_tyrec_1, atslab__rw_pin),
ATSPMVcastfn(cast, atstkind_t0ype(atstype_uint8), arg1)) ;
ATSINSstore(ATSSELfltrec(ATSderef(ATSPMVcastfn(LCD_takeout_struct,
atstkind_type(atstype_ptrk), ATSPMVrefarg0(ATSPMVcastfn(castvwtp0,
atstype_boxed,
PMVerr(“/home/kiwamu/src/arduino-mega2560-ats/DATS/lcd.dats:
1942(line=55, offs=30) – 1965(line=55, offs=53)”)))),
postiats_tyrec_1), postiats_tyrec_1, atslab__enable_pin),
ATSPMVcastfn(cast, atstkind_t0ype(atstype_uint8), arg2)) ;
ATSINSstore(ATSSELfltrec(ATSderef(ATSPMVcastfn(LCD_takeout_struct,
atstkind_type(atstype_ptrk), ATSPMVrefarg0(ATSPMVcastfn(castvwtp0,
atstype_boxed,
PMVerr(“/home/kiwamu/src/arduino-mega2560-ats/DATS/lcd.dats:
1942(line=55, offs=30) – 1965(line=55, offs=53)”)))),
postiats_tyrec_1), postiats_tyrec_1, atslab__data_pins), tmp356) ;
ATSINSmove_void(tmp357,
pinMode(ATSSELfltrec(ATSderef(ATSPMVcastfn(LCD_takeout_struct,
atstkind_type(atstype_ptrk), ATSPMVrefarg0(ATSPMVcastfn(castvwtp0,
atstype_boxed,
PMVerr(“/home/kiwamu/src/arduino-mega2560-ats/DATS/lcd.dats:
1942(line=55, offs=30) – 1965(line=55, offs=53)”)))),
postiats_tyrec_1), postiats_tyrec_1, atslab__rs_pin),
ATSextval(OUTPUT))) ;
What is PMVerr?
Regards,
Kiwamu Okabe at METASEPI DESIGN