Tutorial Video No. 11 Question

18 views
Skip to first unread message

oxnard linux junkie

unread,
Jul 3, 2009, 2:40:35 AM7/3/09
to GCC-HCS12
Hello,
I noticed in tutorial 11 there a slightly different compiler used when
creating the project. At around the time 1:06, the tutorial shows how
to configure the Binary Parser Options. The addr2line command: is
m68hc12-addr2line in the other tutorials where in this tutorial you
use m68hc11-addr2line. This also goes for the c++filt Command, m68hc11-
c++filt is used.

Question:

Why is m68hc11 used instead of m68hc12? Are there noticeable
differences between them?

Navid

unread,
Jul 3, 2009, 1:02:18 PM7/3/09
to GCC-HCS12
Hi,

Yes, you are right. However that is just a name:

Please run "ls -al /usr/bin/m68hc12-addr2line"
/usr/bin/m68hc12-addr2line -> m68hc11-addr2line

As you see this is just a simple link ...

We let the executable knows about our target CPU with the argument
passed to the executable file ... I mean:

m68hc11-addr2line == m68hc12-addr2line
But we distinguish them by passing different flags: -m68hc12 or -
m68hc11 ...

For more information please have look at the way I compiled GCC for
hcs12:
http://gcc-hcs12.com/downloads/build_script.tcsh
first I used: setenv GCC_HC123_PROGRAM_PREFIX 'm6812-elf-'
and then I passed --program-prefix="$GCC_HC123_PROGRAM_PREFIX" which
means my new executable files will start with m6812-elf-

Hope this helps,
Navid
Reply all
Reply to author
Forward
0 new messages