[Coco] DEFT Pascal
Gene Heskett
gene.heskett at verizon.net
Wed Jul 5 02:14:29 EDT 2006
Carey Eugene wrote:
> Ken;
#$%^&*( html!
> While looking through my Deft Pascal v4.1 manual, I see I have a lot of notes.
(Plus somewhere or other, I disassembled a good portion of the
library. I
also did that with the OS9 C compiler library... I actually
rec-reated the C
source for the library. I must have much time on my hands...[grin])
I thought I was the only one with too much time on my hands and a C
program that wouldn't link, the C library linkage order was wrong and I
wound up rebuilding it with 2 routines up front, and the same ones clear
at the end. The linker can only resolve forward references, so if it
runs into a piece of code it needs late in the link scan, and that code
was one of the first modules in the library, it won't back up and
re-search the library.
I wasn't smart enough to just merge 2 copies of the library into one
file, that would have been too simple...
It was a Bummer at the time, but I never did try to fix the linker
either. It should be fixable by simply seeing if there are unresolved
references when the EOF(s) of the library(s) has been hit, check a bit
to see if we been here before & if not set a bit someplace & repeat the
library scan, else exit with error 1.
> Most of the notes are just the asm sequences for various Pascal statements. That way they can be called from an assembler module, etc.
>
> However, I see two bugs listed, too. I don't remember these, but I wrote them down, so I obviously did encounter them.
>
> I'll quote them.
>
> 1) Bug in Linker.
> After the first pass it would lock up and the disk would stop. It was caused by my using 2 static integer arrays of 8 entries each. This resulted in a module with a total size of 41k. The linker can only handle 36k. This should have caused a "module too big error", but it didn't.
>
> 2) Bug in assembler.
> When using the assembler and an external symbol, declare that symbol as EXT, not as EXTA. If you use 'absolute', the assembler may automatically use direct page addressing because there is no override.
>
>
> Just thought I'd mention them so they can be noted in the docs. I don't remember any more details.
>
> Carey
>
>
>
> ----- Original Message -----
> From: "Kenneth Schunk" <ken.schunk at gmail.com>
> To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
> Sent: Tuesday, July 04, 2006 9:37 PM
> Subject: Re: Re: [Coco] DEFT Pascal
>
>
>> Sure - that would be great. The 4.x additions weren't all that many,
>> so if I have the V3 manuals in PDF I can get the rest scanned in and
>> put on the web site.
>>
>> Ken
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco
>
--
Cheers, Gene
More information about the Coco
mailing list