Skip to main content
Visitor II
June 20, 2011
Question

.bsct size overflow (discovery, cosmic)

  • June 20, 2011
  • 3 replies
  • 1146 views
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.

    This topic has been closed for replies.

    3 replies

    Super User
    June 20, 2011
    Posted on June 21, 2011 at 00:04

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

    Visitor II
    June 21, 2011
    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

    pietruha8Author
    Visitor II
    June 29, 2011
    Posted on June 30, 2011 at 00:07

    ok, thanks ;] problem solved