[AWS] Large embedded resources

Alejandro. R. Mosteo Chagoyen A. R. Mosteo Chagoyen" <alejandro@mosteo.com
Mon, 26 Jan 2004 12:19:22 +0100


Hi,

I'm using for the first time the embedding facilities of AWS (1.3),
and I must say it's truly useful to have a single, standalone
executable.

However, I think I've push my luck a bit too far. While trying to
embed a quite large file (4.4MB), that's what happens:

Awsres generates a header of 24MB; so far, so good.

The problem is in Gnat (3.15p Win32) itself, which skyrockets its
memory usage: I've seen 200 MB in use, 600 in virtual swap usage,
before interrupting it after 15 minutes, trying to compile the main
resources body (the one which "withes" the large resource).

I don't know if the compilation would end giving enough time to it
(I'm trying in a 384MB computer which trashes very badly, I'll try
later in a 1GB one). Just in case, I've tried without any Gnat
switches to prevent optimizations or something, but the result is the
same.

Are you aware of this circunstance? Do you know of some workaround?
I've seen some old messages at c.l.a. about large arrays, but nothing
reporting this problem. They even talked about arrays of more than
Natural'Last elements, which clearly is not the case here.

I'll post to c.l.a. with this Gnat specific question, but just in case
you have some information about this...

Kind regards,

-- 
     |\      _,,,---,,_       
     /,`.-'`'    -.  ;-;;,_   Alejandro R. Mosteo Chagoyen
    |,4-  ) )-,_..;\ (  `'-'  mailto:alejandro@mosteo.com
   '---''(_/--'  `-'\_)