#292 segmentation fault

closed-fixed
5
2013-05-25
2002-02-08
Anonymous
No

Hello !
I am SDCC user since almost two years. It is very nice
and handy tool

I am working currently on USB devices from Texas
Instruments. They have quite nice uControllers called
TUSB3210 and its family.
I wanted to learn USB programming and i tried to do
that by compiling some parts of code from TI
datasheets.
The code is quite large and SDCC hangs doin
compilation. There are some results of compilation:

on linux box:

[bujnows@bio17 tusb]$ sdcc bootcode.c
bootcode.c(732):warning *** left shifting more than
size of object changed to zero
bootcode.c(739):warning *** left shifting more than
size of object changed to zero
bootcode.c(746):warning *** left shifting more than
size of object changed to zero
bootcode.c(762):warning *** left shifting more than
size of object changed to zero
bootcode.c(773):warning *** left shifting more than
size of object changed to zero
bootcode.c(835):warning *** conditional flow changed
by optimizer 'bootcode.c(281)':so said EVELYN the
modified DOG
bootcode.c(941):warning *** left shifting more than
size of object changed to zero
Segmentation fault
[bujnows@bio17 tusb]$

on windows 2000:
C:\adam\sdcc\fromtusb>sdcc -I../include -L../lib
bootcode.c
bootcode.c(732):warning *** left shifting more than
size of object changed to zero
bootcode.c(739):warning *** left shifting more than
size of object changed to zero
bootcode.c(746):warning *** left shifting more than
size of object changed to zero
bootcode.c(762):warning *** left shifting more than
size of object changed to zero
bootcode.c(773):warning *** left shifting more than
size of object changed to zero
bootcode.c(835):warning *** conditional flow changed
by optimizer 'bootcode.c(281)':so said EVELYN t
he modified DOG
bootcode.c(941):warning *** left shifting more than
size of object changed to zero

then nice w2000 window Application error: The
instruction at "0x00443819" referenced memory
at "0x0000015" The memory could not be "read".

C:\adam\sdcc\fromtusb>

since there are no system dependent errors i think
there is something in sdcc.

There is also possibility to have something wrong in
code i'm trying to compile, but code was taken from
TUSB datasheet. Im sending the code.

Best regards
Adam Bujnowski

Discussion

  • Johan Knol

    Johan Knol - 2002-02-08

    Logged In: YES
    user_id=63512

    SDCC uses 16-bit ints. So e.g. i<<24 could be causing the
    warnings.

    The seg fault should not occur. Please attach the code.

     
  • Johan Knol

    Johan Knol - 2002-02-08
    • assigned_to: nobody --> johanknol
     
  • Johan Knol

    Johan Knol - 2002-02-22

    Logged In: YES
    user_id=63512

    fixed in SDCCast.c:1.141

     
  • Johan Knol

    Johan Knol - 2002-02-22
    • labels: 355281 --> C-Front End
    • milestone: --> fixed
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks