This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C51 COMPILER V4.01

Hi All,
'am new to C51 compilier and I got this error message which I would like anybody familiar with C51 to help me out with a good suggestion on how to solve it:

C51 FATAL-ERROR-
ACTION: ALLOCATING MEMORY
ERROR: MEMORY SPACE EXHAUSTED
C51 TERMINATED
Compilation Failure

Thanks for your anticipated help.

Yemi

  • "am new to C51 compilier"

    But 4.01 is an extremely old version?
    Why start with something so far out-of-date?!

    The error sounds like your PC has insufficient memory.
    What is your PC spec - RAM, OS, etc?

  • Thanks. my PC has 128mb RAM , with 10GB hard disk. 'am actually porting a Terminal application to the ingenico ELITE 730-16 POS.

  • C51 V4 used a DOS extender to allocate more memory from extended (XMS) and expanded ()(EMS) memory areas. Make sure that if you run this version under Windows that you specify these memory types in a PIF file for C51. The Memory tab in the PIF Properties allows you to specify these settings.

    Now there's a way back machine answer for you.

    Jon

  • Sounds to me like all the more reason to use a proper up-to-date tool!

  • No, you better hang onto that version 4 code. We've already got a couple of PCs in the office with 4 gig of RAM. If we don't get wider address bus support in the hardware and OS, we'll be right back to needing memory extenders soon... Darn those dinky 32-bit segment registers in the 386. Who thought that was a good idea?

  • Thank you all. I have traced the problem to the size of the one of the c source files being compiled. To overcome the problem , the large have been split to 2 and linked together. The problem is over and I have succefully downloaded the resulting appliaction into the terminal.Thank you all.

  • I am having problem linking my program
    with the 'out-of-date' version 4.01 of C51/L51. The program needs page swapping
    and I have successfully compiled and
    linked the program with 2 CODE pages.

    Now when I add more code and functions
    I get this problem. See the log below

    Anyone that can help me?

    Regards
    Ken
    --------------

    Application size= 46736 : exceeds one page size => page swapping is needed
    Allocating space for absolute segments ...
    Total absolute segments size =33
    Allocating space for duplicated segments ...
    Total duplicated segments size =8215
    Allocating space for other segments ...
    LINKER ERROR 0271 Segment connot be allocated: SEGMENT=?CO?CODE MODULE=CODE
    LINKER FAILURE :1 error(s) 0 warning(s)

  • So why are you sticking with this way out-of-date version when it won't even build your code!

    Sounds like an ideal time to move to the current version - then, with all the latest optimisations, you might even find that you don't need banking at all!

  • Application size= 46736

    then, with all the latest optimisations, you might even find that you don't need banking at all!


    I don't see why he needs it in the first place.

    Erik

  • I only have access to this version of
    the compiler and the target system that
    the software module should be loaded onto
    used 32 K memory pages.

  • "I only have access to this version of the compiler"

    and it doesn't work - so why not upgrade it?

    what is the point in wasting time messing about with such an out-of-date toolset?
    At least if you were working with current tools, you would be investing in valuable experience.

  • In the documentation of the IDE I use it states clearly that I have
    to use version 4.01. In the documentation
    it says:

    "With the IDE you have to use the Keil Compiler V4.01. It is the only version,
    you have to use.
    In fact, the Keil V3.07 will cause some troubles. The version 5.01 is not compatible with the V4.01."

    So I wonder if I can even use a later than
    version 5.01 if that version is not
    compatible. Maybe you can tell me why the
    version 5.01 is not compatible?

  • "Maybe you can tell me why the version 5.01 is not compatible?"

    Compatible with what?

    What is this unspecified "IDE" that you're using?
    If it's so tied to Keil v4.10, does that mean that it's also obsolete?

    Are you building a cross-development tools museum or something?! ;-)