CW HC12: Linker problem

CW HC12: Linker problem

Post by bastian4 » Thu, 18 Dec 2003 19:01:09


Hi

(I use CWHC12V3)

I want to use SmartLinking with an assembly file. Therein I have
lots of sections all like this

sc_rom_<name of function>

Now I want all of these sections to go in one memory bank.

PLACEMENT
_PRESTART, STARTUP,
ROM_VAR, STRINGS,
VIRTUAL_TABLE_SEGMENT,
NON_BANKED, COPY INTO ROM_C000, ROM_4000;
DEFAULT_ROM INTO
PAGE_30,PAGE_31,PAGE_32,PAGE_33,PAGE_34,PAGE_35,PAGE_36,PAGE_37;
sc_rom_<x> INTO
PAGE_38,PAGE_39,PAGE_3A,PAGE_3B,PAGE_3C,PAGE_3D;
DEFAULT_RAM INTO RAM;
END

It seems, I cannot use wildcards (as e.g. with GNU ld) ?
Is there a way (no I don't want to enter 60 function names :-) ?

TIA
---
42Bastian
Do not email to XXXX@XXXXX.COM , it's a spam-only account :-)
Use <same-name>@epost.de instead !
 
 
 

CW HC12: Linker problem

Post by MW Ro » Sat, 20 Dec 2003 10:28:18

In article < XXXX@XXXXX.COM >,



Our Guru in Support said...

As far as I can tell for right now there is no way to do wildcard for
functions but I'm checking iwth engineering and if I hear different'y
I'll let you know. If Iyou don't care about the location of each
function on a function by function basis (which he probably don't if you
are just throwing them all into one or more segments), then I would put
all of your functions (the ones in question) into one section, like
sc_rom_functions, and then place that.


Hope this helps.

Ron

--
Metrowerks wishes you and yours
Seasons Greetings and Happy Holidays

Get Geekware and Software http://www.yqcomputer.com/
Shop our online store and get free shipping until Dec 31

Ron Liechty - XXXX@XXXXX.COM - http://www.yqcomputer.com/