Re: consecutive bytes in internal RAM for DSEG




ravikumar.n@xxxxxxxxxxxxxxxx wrote:
Hi All,
I am Ravikumar.N, using SDCC compiler with Cygnal C8051F130
microcontroller for one of my application. Used large memory model
here.

The folowing is my issue.

I have declared an array of 600 of type float with the keyword xdata.
i.e. xdata float array[600].

This array is used to store some float values.

while compiling the application, the application gets compiled well.

But, while linking the application, the following
error will be displayed

?ASlink-Error-Could not get 97 consecutive bytes in internal RAM for
area DSEG.

what could be the problem. If anybody have faced the same problem
please reply as early as possible

Thanks in advance.
Ravikumar.N

You havent got your linker setup correctly, you need to read the manul
to find out how to setup your external data section.

.



Relevant Pages

  • Re: C to Java Byte Code
    ... The actual topic is about creating a Java equivalent for a C program. ... as well have argued that a byte, int, long, float, double can all be ... The values of the compiler depend on the underlying hardware. ...
    (comp.programming)
  • Re: OT: C++ overloading operators
    ... way before complex numbers were part of the STL. ... I used the INLINE directive for these trivial functions. ... A compiler can not do inlining without access to the source code. ...
    (comp.dsp)
  • Re: Newbie Questions: variable, operators
    ... Its type is float. ... you initialize a float variable with a double value (which ... There is an upper level of what compiler writers build into their ... I would not expect any compiler to actually recognize this optimization. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: stdarg definitions
    ... they are on most implementations) is promoted to int when it gets passed ... (fixed in later versions of the macros and compiler). ... void vfoo(int nargs, float firstfloat, va_list ap) { ... variable-argument function never has a type that undergoes promotion. ...
    (comp.lang.c)
  • Re: float pointers
    ... >>float yds,ft,ins; ... It's perfectly legal to declare one function ... > Your compiler must have complained about this line.... ... note that pointers are not subject to promotion, ...
    (comp.lang.c)