Skip to main content
pietruha8
Associate II
Jun 20, 2011 8:53 PM UTC
Question

.bsct size overflow (discovery, cosmic)

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

    Andrew Neil
    Super User
    Jun 20, 2011 10:04 PM UTC
    Posted on June 21, 2011 at 00:04

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

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    jdf25252
    Associate II
    Jun 21, 2011 2:54 PM UTC
    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
    pietruha8Author
    Associate II
    Jun 29, 2011 10:07 PM UTC
    Posted on June 30, 2011 at 00:07

    ok, thanks ;] problem solved