James Newton wrote: > Very simple little program in HITECH C for the 12F675, randomly produces > this very strange error: >=20 > aspic "\"--edf=3DD:\Program Files\HI-TECH Software\ > Error [800] C:\DOCUME~1\JAMESN~1.EFP\LOCALS~1\Temp\s3h4.; 353. undefine= d > symbol "btemp" The first question is why you're using aspic.exe and not picc.exe. I'm not sure what difference this makes, but it is definitely not the documented way of running a compilation. Check out the manual for "PICC Comand-line Driver" or something similar. If you're using picc.exe and this is an intermediate output, the original picc.exe command line probably would help. > I mean... really? Are you kidding? The compiler is using an identifier > that is isn't bothering to define space for? And one that (although > we didn't) has a name any one could /easily/ crash on? You can't "crash" on this name. (User) C symbols are typically known to the assembler with a prepended underscore, so you can't crash with C on a compiler-generated symbol that doesn't start with an underscore. In my compiler manual (9.60), btemp is a temporary area with 12 bytes. If it isn't properly declared by your compiler, you either haven't invoked it properly and maybe left out some startup/standard code (see the question about aspic vs picc above) or you've hit a compiler bug. > Just for fairness, here is the program, so you can see how simple it > is and maybe find something in it that could cause an issue. > Actually, if someone could try compiling this on their PC I would > appreciate it; just to see if it does the same thing to you with out > the #asm block at the end.=20 Compiles here with PICC 9.60 (leave out the -V to see less output): [D:\Projects\Gerhard\test]picc --CHIP=3D12F675 -V James.c clist.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" James.c James.lst cpp.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -DHI_TECH_C -D__PICC__ -SP1,1,1,1,1,1,1 "-IC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\include" -D_HTC_VER_MAJOR_=3D9 -D_HTC_VER_MINOR_=3D6= 0 -D_HTC_VER_PATCH_=3D2 -D_12F675 -D_MPC_ -D_PIC14 -S1,2,2,4,3,3 -D_COMMON_=3D1 -D_BANKCOUNT_=3D2 -D_BANKBITS_=3D1 -D_GPRBITS_=3D0 -D__DATAB= ANK=3D1 -D_ROMSIZE=3D1023 -D_EEPROMSIZE=3D128 -DEEPROM_SIZE=3D128 -D_FLASH_ERASE_SIZE=3D0 -D_FLASH_WRITE_SIZE=3D0 James.c F:\Temp\s2l8. p1.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -u -Gstrings,const -M -B -Y -r -QX,bank1 -QY,bank2 -QZ,bank3 -QF,far -QN,near -QI,interrupt -QS,persistent -QT,eeprom F:\Temp\s2l8. James.p1 F:\Temp\s2l8.2 cgpic.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -Og9s -DJames.sdb -PPICC12F675,2,1023,2,0,1,0,0,1,32-95,1 James.p1 F:\Temp\s2l8. aspic.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -o "-CC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\picc.ini" -ver=3DV9.60PL2 --chip=3D12F675 -R3FF -oJames.obj F:\Temp\s2l8. aspic.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -o "-CC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\picc.ini" -ver=3DV9.60PL2 --chip=3D12F675 -R3FF -oF:\Temp\s2l8.obj F:\Temp\s2l8.as hlink.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -h+James.sym -z -Q12F675 -MF:\Temp\s2l8.map -ACODE=3D00h-03FEh -ACONST=3D00h-0FFhx3,0300h-03FEh -AENTRY=3D00h-0FFhx3,0300h-03FEh -ASTRING=3D00h-0FFhx3,0300h-03FEh -ABANK0=3D020h-05Fh -ACOMBANK=3D020h-05Fh -preset_vec=3D00h,intentry,intcode,intret,init,init23,end_init,clrtext,main= text,stringtable,pstrings,strings -ppowerup=3DCODE -pintsave_0=3D020h -ptemp=3D-COMBANK -prbit_0=3DBANK0,rbss_0=3DBANK0,rdata_0=3DBANK0,idata_0=3DCODE -pnvram=3DBA= NK0 -ACONFIG=3D02007h-02007h -pconfig=3DCONFIG -AIDLOC=3D02000h-02003h -pidloc=3DIDLOC -AEEDATA=3D00h-07Fh/02100h -peeprom_data=3DEEDATA -posccal=3D03FFh -pfloat_text0=3DCODE,float_text1=3DCODE,float_text2=3DCODE -pfloat_text3=3DCODE,float_text4=3DCODE F:\Temp\s2l8.obj James.obj "C:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\lib\pic21--u.lib" "C:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\lib\pic40b-c.lib" "C:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\lib\pic21--u.lib" aspic.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -o "-CC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\picc.ini" -ver=3DV9.60PL2 --chip=3D12F675 -R3FF -oF:\Temp\s2l8.obj F:\Temp\s2l8.as hlink.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -h+James.sym -z -Q12F675 -ol.obj -MF:\Temp\s2l8.map -ACODE=3D00h-03FEh -ACONST=3D00h-0FFhx3,0300h-03FEh -AENTRY=3D00h-0FFhx3,0300h-03FEh -ASTRING=3D00h-0FFhx3,0300h-03FEh -ABANK0=3D020h-05Fh -ACOMBANK=3D020h-05Fh -preset_vec=3D00h,intentry,intcode,intret,init,init23,end_init,clrtext,main= text,stringtable,pstrings,strings -ppowerup=3DCODE -pintsave_0=3D020h -ptemp=3D-COMBANK -prbit_0=3DBANK0,rbss_0=3DBANK0,rdata_0=3DBANK0,idata_0=3DCODE -pnvram=3DBA= NK0 -ACONFIG=3D02007h-02007h -pconfig=3DCONFIG -AIDLOC=3D02000h-02003h -pidloc=3DIDLOC -AEEDATA=3D00h-07Fh/02100h -peeprom_data=3DEEDATA -posccal=3D03FFh -pfloat_text0=3DCODE,float_text1=3DCODE,float_text2=3DCODE -pfloat_text3=3DCODE,float_text4=3DCODE F:\Temp\s2l8.obj James.obj "C:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\lib\pic21--u.lib" "C:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\lib\pic40b-c.lib" "C:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\lib\pic21--u.lib" objtohex.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -i -16,2 l.obj James.hex hexmate.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" James.hex -OJames.hex -logfile=3DJames.hxl -addressing=3D2 cromwell.exe "--edf=3DC:\Program Files (x86)\HI-TECH Software\PICC\STD\9.60\dat\en_msgs.txt" -k -m -P12F675,2675,PIC14 -NCODE,CONST,ENTRY,STRING James.hex James.sym -omcof del James.obj del l.obj Memory Summary: Program space used 95h ( 149) of 3FFh words ( 14.6%) Data space used 8h ( 8) of 40h bytes ( 12.5%) EEPROM space used 0h ( 0) of 80h bytes ( 0.0%) Configuration bits used 1h ( 1) of 1h word (100.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%) del F:\Temp\s2l8. del F:\Temp\s2l8.1 del F:\Temp\s2l8.2 del F:\Temp\s2l8.map del F:\Temp\s2l8.as del F:\Temp\s2l8.obj --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .