I'm not totally sure about this, but can't you just throw the 'smart mode' linker
control
switch in the Metrowerks project setting panel? (I don't remember which panel).
This would allow 64K segments before you have a problem (this is at the expense of
code size).
John
Is it possible to have class methods outside the default segment in PRC
Tools 2.0? I try (the equivalent of):
class A
{
public:
A() __attribute__((section("sec1")));
~A() __attribute__((section("sec1")));
test() __attribute__((section("sec1")));
private:
int x;
}
It compiles, but the program crashes with an "address error" whenever one of
the class methods is called.
Currently I can get my program to run by having all my method calls in the
default segment and the ordinary functions in other segments. But I guess
that sooner or later I will come to the point where I have more than 32 K of
methods.
// Niklas
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/