Jump to content

Internal Linker Error


Recommended Posts

//
// File: bug16.C
// Target: PIC16F876A
// OS: WinXP, SP2
// SourceBoostIDE: 6.60
// Compiler: BoostC 6.60
// Reproducible: always
// Expected behavior: compile and link with errors
//
// Description: 
//
//  Decrementing a bit value resuts with Linker internal error
//  
/*
BoostLink Optimizing Linker Version 6.60
http://www.sourceboost.com
Copyright(C) 2004-2006 Pavel Baranov
Copyright(C) 2004-2006 David Hobday


Internal Error:Pseudo instruction mode error:INSTR_CLR_MEM, in source file:'C:\Public\SourceBoost\bugs\bug17.c' line:47
Internal Error:Pseudo instruction mode error:INSTR_INC_MEM, in source file:'C:\Public\SourceBoost\bugs\bug17.c' line:47


Failure
Internal Error: Var not found id:0x00000000: in Function 'main'
"C:\Program Files\SourceBoost\boostc.pic16.exe" bug17.c -t PIC16F876A 
"C:\Program Files\SourceBoost\boostlink.pic.exe" /ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib bug17.obj /t PIC16F876A /d C:\Public\SourceBoost\bugs /p bug17
Exit code was -2.
Removing target: bug17.hex
Failed to locate output file 'C:\Public\SourceBoost\bugs\bug17.hex'
Done
*/
#include <system.h>

bit signal;

void main()
{
 signal = 1;
 signal = !signal;
 signal = ~signal;
 signal ^= 1;
 signal = signal?0:1;
 ++signal;
 signal++;
 --signal;  //<- causes linker internal error

}

Link to post
Share on other sites
Interesting ... i have saw that form fail in a few other compilers with the same type of error...

but usually only with unsigned datatypes... maybe bits are unsigned <_<

 

No this was just a plain error in the compiler. Now fixed. Fix will be included into the next release.

 

Regards,

Pavel

Link to post
Share on other sites
  • 4 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...