M68HC1x Group

Syndicate content
GNU 68HC11/HC12
Updated: 17 years 13 weeks ago

Re: Libgcc with a banked HCS12 system

Mon, 2006-10-23 15:00
... I find in my system: /usr/lib/gcc-lib/m6811-elf/3.3.6-m68hc1x-20060122/mshort/mlong-calls/libgcc.a so it looks like all your mystery functions (which are
Categories: Software

Re: --defsym on linker commandline?

Sun, 2006-10-22 00:44
... Many thank yous; it's embarassing that I didn't notice that. I get so used to linking with gcc command. __________________________________________________
Categories: Software

Re: --defsym on linker commandline?

Sat, 2006-10-21 05:57
On Sat, 21 Oct 2006 07:43:50 +1000, Jefferson Smith ... That's gcc's command line. Either pass that to m6811-elf-ld, or m6811-elf-gcc
Categories: Software

Re: Libgcc with a banked HCS12 system

Sat, 2006-10-21 00:55
... This is a potential concern, given the frequency with which these functions are called, performance could be significantly impacted. This is why I was
Categories: Software

Re: Libgcc with a banked HCS12 system

Fri, 2006-10-20 23:28
... You considered converting these few/tiny functions into "far" types, but that doesn't sound like a desirable solution. Too large percent of the time would
Categories: Software

Libgcc with a banked HCS12 system

Fri, 2006-10-20 22:58
I've been working on all the issues surrounding banking, and have solved the major problems, but have hit something I to which I can't find an answer. This
Categories: Software

--defsym on linker commandline?

Fri, 2006-10-20 21:54
I can't get "--defsym" to work with ld according to http://m68hc11.serveftp.org/doc/ld_2.html#SEC2 I try m6811-elf-gcc -m68hcs12 -mshort -Wl,-T,ldscript-rom.x
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Fri, 2006-10-13 18:13
... I wonder what it emits for *((volatile word*) &offset[_eeprom_base]) = 0; Mike -- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} This
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Fri, 2006-10-13 17:55
... Ah, the offset. Makes it completely backwards? This is all messed up 8-P With the offset it works without -O and not with With no offset it works with -O
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Fri, 2006-10-13 17:17
... Same version here (3.1). If you're saying -Os does not change it to clr-clr, are you sure you recompiled? Apparently it is the optimizer breaking it. It
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Fri, 2006-10-13 06:37
... Here with -Os (I use version 3.1 of the tool-chain). But the size of my function was different. So we learn, don't rely on optimization. I wonder, if the
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Fri, 2006-10-13 06:05
... It says it was fixed in 2.92. I have 3.1 and without -Os I get two 8bit accesses. Ah, the difference is the offset: // v 3.1 toolchain, gcc parameters
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Thu, 2006-10-12 23:31
Oh no... the bugreport says it is fixed. I was right, he had agreed it was a bug. I didn't find it before because I only looked at bugreports still open.
Categories: Software

Re: Writing a function which is intended to run from RAM

Thu, 2006-10-12 23:19
... Yeah, I use LMA and VMA pretty easily now. It's not "relocatable", but just loads to a different address (Flash) than the address it expects to execute at.
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Thu, 2006-10-12 22:15
... Yes I've had optimization enabled (-Os) because my extern inline functions did not compile correctly without it. So did you mean "Without -Os" it emits
Categories: Software

Re: Writing a function which is intended to run from RAM

Thu, 2006-10-12 16:11
Frank, I used a different approach that has allowed me to write C code and run it in RAM. I am using the MC9S12NE64 which has 4 16K Flash pages, with only 3
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Thu, 2006-10-12 12:01
... Actually, this won't work, either, because it doesn't address the issue of an atomic, not just uninterruptible, 16 bit access. A specially-designed set of
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Thu, 2006-10-12 11:43
... The problem with all such attempts to address this issue boils down to this: If the compiler changes, then the programmer has to go back and "fiddle around
Categories: Software

Re: compiler emits two 8bit access instead of one 16bit

Thu, 2006-10-12 08:01
... Do you have optimization enabled ? With -Os it does not emit the clr, but a movw #0,... instead. You might also do this: volatile word zero = 0; *(volatile
Categories: Software

Re: Writing a function which is intended to run from RAM

Thu, 2006-10-12 01:45
Thanks - I knew I could do it with assembly easier. I was kind of hoping to write the relocatable function in C, that's all. Any ideas which linker file
Categories: Software