cancel
Showing results for 
Search instead for 
Did you mean: 

.bsct size overflow (discovery, cosmic)

pietruha8
Associate II
Posted on June 20, 2011 at 22:53

Hello everyone,

I've got problem with compilation of my application

Running Linker

clnk -l''C:\Program Files\COSMIC\CXSTM8_16K\Lib''  -o Debug\stvd_project.sm8 -mDebug\stvd_project.map Debug\stvd_project.lkf

#error clnk Debug\stvd_project.lkf:1 segment .bsct size overflow (296)

#error clnk Debug\stvd_project.lkf:1 segment .ubsct size overflow (10)

 The command: ''clnk -l''C:\Program Files\COSMIC\CXSTM8_16K\Lib''  -o Debug\stvd_project.sm8 -mDebug\stvd_project.map Debug\stvd_project.lkf '' has failed, the returned value is: 1

exit code=1.

Is there anyone that can help with this problem?

Thank you in advance.

3 REPLIES 3
Andrew Neil
Chief II
Posted on June 21, 2011 at 00:04

Have you tried looking up .bsct and  .ubsct in the Cosmic manual?

jdf25252
Associate II
Posted on June 21, 2011 at 16:54

okelm

First thing see my response to Nico on Memory use and allocation.

.bsct & .ubsct are zero page sections & there is only 256 bytes available there. 

You should check your memory model.  I suspect that you're using ''Short Stack (+mods0)''  This model's default variable placement is into the zero page.  I would suggest using ''Long Stack (+modsl0)''.  This memory model will place all variables into the .data & .bss segments which should give you about 1.5K bytes for your variables.

jdf

pietruha8
Associate II
Posted on June 30, 2011 at 00:07

ok, thanks ;] problem solved