Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
CodeWarrior Linking Ansi library - eric_cina - Oct 25 21:19:45 2006
Hi. I have been using CodeWarrior with my A128 micro. I've recently
run into a problem with my new project where CodeWarrior does not link
any Ansi library. I cannot do any switch (case) statements and some
bit shifting (<< or >>) does not work. I am using small memory model
and I thought it should automatically link in one of the ansi*.lib
files but it does not.
Any ideas?
Thx,
Eric

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
RE: CodeWarrior Linking Ansi library - Erich Styger - Oct 26 5:05:58 2006
Hi Eric,
The runtime library (the functions to handle switches, shifting, etc) are
part of the ansi library. You do not need to worry about getting it linked
with the application, as the linker will do dead code/data stripping and
only objects used are linked.
The linker does not automatically link one of the libraries.
Erich
-----Original Message-----
From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] On Behalf Of
eric_cina
Sent: Thursday, October 26, 2006 3:17 AM
To: 6...@yahoogroups.com
Subject: [68HC12] CodeWarrior Linking Ansi library
Hi. I have been using CodeWarrior with my A128 micro. I've recently
run into a problem with my new project where CodeWarrior does not link
any Ansi library. I cannot do any switch (case) statements and some
bit shifting (<< or >>) does not work. I am using small memory model
and I thought it should automatically link in one of the ansi*.lib
files but it does not.
Any ideas?
Thx,
Eric
______________________________
controlSUITE software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )Re: CodeWarrior Linking Ansi library - eric_cina - Oct 26 13:05:51 2006
So what do I need to do to get CodeWarrior to link in the libraries
needed for bit shifting (module BSHRU and BSHL) and case statements
(modules CASE_CHECKED and CASE_CHECKED_BYTE)? Currently certain bit
shifting operations fail during linking and all case statements fail
during linking, although the compiler does not complain just the
linker.
Thx,
Eric
--- In 6...@yahoogroups.com, "Erich Styger"
wrote:
>
> Hi Eric,
> The runtime library (the functions to handle switches, shifting,
etc) are
> part of the ansi library. You do not need to worry about getting
it linked
> with the application, as the linker will do dead code/data
stripping and
> only objects used are linked.
> The linker does not automatically link one of the libraries.
>
> Erich
>
> -----Original Message-----
> From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] On
Behalf Of
> eric_cina
> Sent: Thursday, October 26, 2006 3:17 AM
> To: 6...@yahoogroups.com
> Subject: [68HC12] CodeWarrior Linking Ansi library
> Hi. I have been using CodeWarrior with my A128 micro. I've
recently
> run into a problem with my new project where CodeWarrior does not
link
> any Ansi library. I cannot do any switch (case) statements and
some
> bit shifting (<< or >>) does not work. I am using small memory
model
> and I thought it should automatically link in one of the ansi*.lib
> files but it does not.
>
> Any ideas?
>
> Thx,
> Eric
>
>

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )RE: Re: CodeWarrior Linking Ansi library - Erich Styger - Oct 26 13:18:36 2006
Hi Eric,
You need to link the correct (corresponding to your memory model/etc)
library to your application.
You find information about the different libraries e.g. in the readme file
in lib\hc12c.
If you are working with the CodeWarrior IDE, you simply can drag&drop the
library file to your project/project file list. Or you can add it manually
to the linker (.prm) file if you want.
Erich
-----Original Message-----
From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] On Behalf Of
eric_cina
Sent: Thursday, October 26, 2006 7:02 PM
To: 6...@yahoogroups.com
Subject: [68HC12] Re: CodeWarrior Linking Ansi library
So what do I need to do to get CodeWarrior to link in the libraries
needed for bit shifting (module BSHRU and BSHL) and case statements
(modules CASE_CHECKED and CASE_CHECKED_BYTE)? Currently certain bit
shifting operations fail during linking and all case statements fail
during linking, although the compiler does not complain just the
linker.
Thx,
Eric
--- In 6...@yahoogroups.com, "Erich Styger"
wrote:
>
> Hi Eric,
> The runtime library (the functions to handle switches, shifting,
etc) are
> part of the ansi library. You do not need to worry about getting
it linked
> with the application, as the linker will do dead code/data
stripping and
> only objects used are linked.
> The linker does not automatically link one of the libraries.
>
> Erich
>
> -----Original Message-----
> From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] On
Behalf Of
> eric_cina
> Sent: Thursday, October 26, 2006 3:17 AM
> To: 6...@yahoogroups.com
> Subject: [68HC12] CodeWarrior Linking Ansi library
> Hi. I have been using CodeWarrior with my A128 micro. I've
recently
> run into a problem with my new project where CodeWarrior does not
link
> any Ansi library. I cannot do any switch (case) statements and
some
> bit shifting (<< or >>) does not work. I am using small memory
model
> and I thought it should automatically link in one of the ansi*.lib
> files but it does not.
>
> Any ideas?
>
> Thx,
> Eric
>
>
______________________________
controlSUITE software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )