I need to create Datatype descriptor which relies on a function to indentify the file being opened.
DTDesc from teh DevCD DSIs for me (when loading an existing descriptor anyway).
I doenloaded dtmake from aminet and those tools can read "disassemble" and create the new descriptor, but I'm unsure of how to compile the function element so that it works.
On OS4 can it be PPC or 68k code or either?
The original I'm upgrading was 68k so I compiled the fixed (I hope) code with m68k-amigaos- ggc but the resultant descriptor crashes.
Comparing with the original it looks like gcc has placed the strings before the function so that it's not the first thing in the linked object.
My options were
m68k-amigaos-gcc -nostartfiles -nostdlib -noixemul desc_func.c -o DT.drec