From BobGardner at aol.com Wed Sep 16 19:27:22 2009 From: BobGardner at aol.com (BobGardner@aol.com) Date: Wed Sep 16 20:38:39 2009 Subject: [Icc-mot] Anyone using icc11? Message-ID: I still occaisionally edit and recompile hc11 progs I've shipped sometime during the last 10 years or so. Anyone else still using it? I had a editing trick a while back that would add a DV prefix to the most often used variables to org them in the Direct Page so they would use 1 cycle less for loads and stores. Didn't get it 'quite' perfected. I have noticed the compiler doesn't seem to care about jsr or bsr, and I'm wondering if there is any way to cajole the compiler into generating a bsr? If so, is there some clever way of writing a macro to force a bsr and a relative displacement using a .db or something similarly obtuse? Is this just a stupid obsessive compulsive waste of time trying to make an obsolete microprocessor run 2% faster on an unsupported compiler? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-mot/attachments/20090916/3db90fc7/attachment.html From ekarpicz at freemail.lt Thu Sep 17 12:07:20 2009 From: ekarpicz at freemail.lt (Edward Karpicz) Date: Thu Sep 17 13:18:35 2009 Subject: [Icc-mot] Anyone using icc11? References: Message-ID: Hi Bob Replacing jsr with .db macros? Ehhh, with no '<' and '>' compares in .if directives, it would be something like this, not complete yet .macro _bsr .if ((@0 - .)& 0x8000000) ; check sign bit of difference label-"this" .if ( ~(@0 - .) & 0xFFFFFF80 ) ; is reverse branch not in BSR range? jsr @0 .else .db .... insert opcode here .endif .else .if ((@0-.) & 0xFFFFFF80) ; is reverse branch not in BSR range? jsr @0 .else .db ... .endif .endif .endmacro and *.lst file with many jsrs replaced would become very not readable. Also it won't work at all for external references. I think the best you could do would be to try replacing each jsr with bsr and check if it compiles, not nice. Since you managed to make variables using direct addressing, what about remapping both, RAM and registers to zero page? This would make ~64 RAM bytes unavailable (overlapped by registers block), but would allow using direct addressing with both, RAM and registers... Edward ----- Original Message ----- From: BobGardner@aol.com To: icc-mot@imagecraft.com Sent: Thursday, September 17, 2009 5:27 AM Subject: [Icc-mot] Anyone using icc11? I still occaisionally edit and recompile hc11 progs I've shipped sometime during the last 10 years or so. Anyone else still using it? I had a editing trick a while back that would add a DV prefix to the most often used variables to org them in the Direct Page so they would use 1 cycle less for loads and stores. Didn't get it 'quite' perfected. I have noticed the compiler doesn't seem to care about jsr or bsr, and I'm wondering if there is any way to cajole the compiler into generating a bsr? If so, is there some clever way of writing a macro to force a bsr and a relative displacement using a .db or something similarly obtuse? Is this just a stupid obsessive compulsive waste of time trying to make an obsolete microprocessor run 2% faster on an unsupported compiler? ------------------------------------------------------------------------------ _______________________________________________ Icc-mot mailing list Icc-mot@imagecraft.com http://dragonsgate.net/mailman/listinfo/icc-mot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-mot/attachments/20090917/620fa8b4/attachment.html From peter at sensair.com Mon Sep 28 19:05:31 2009 From: peter at sensair.com (Peter Lissenburg) Date: Mon Sep 28 20:17:07 2009 Subject: [Icc-mot] conditional compiler directives changing output filenames? In-Reply-To: References: Message-ID: <4AC16B6B.5020302@sensair.com> Hi all, I need to generate 2 versions of output determined by a value (#define or not), and conditional compiler directives. Is there a way to pass a string to the compiler command line, so I can control the .dbg and .s19 file names? (I think that's the question I need to ask anyway.) Thanks for your assistance. Cheers. Peter L.