Skip to contentSkip to conversation

We have a whole new ton of goodies to investigate...

DISCUSSION Alan Cox 2 participants 5 messages Apr 3, 2015 – Apr 16, 2015

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

http://www.nesssoftware.com/home/mwc/source.php

And in the Coherent tree there isn't just the 386 release but the 286 release and all the compiler and tool chain pieces plus all the utilities, manuals, etc. The dump seems to include 8086, 286 and 386 compilers and assemblers but not an 8086/286 linker.

Alan

#1 lore raw

Hello,

Started to have a look to that huge stuff (not really sorted...), but could you please explain the idea you have in mind ? Is this a suggest to replace the DEV86 toolchain by something else ?

By the way, for the background, could you also tell what is the toolchain you target for Fuzix on 8080/Z80 ?

Regards,

MFLD

Quoted 7 lines · Alan Cox

http://www.nesssoftware.com/home/mwc/source.php

And in the Coherent tree there isn't just the 386 release but the 286 release and all the compiler and tool chain pieces plus all the utilities, manuals, etc. The dump seems to include 8086, 286 and 386 compilers and assemblers but not an 8086/286 linker.

--
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
Quoted 5 lines · On Wed, 15 Apr 2015 19:10:05 +0200 MFLD <[email protected]> wrote:

Hello,

Started to have a look to that huge stuff (not really sorted...), but could you please explain the idea you have in mind ? Is this a suggest to replace the DEV86 toolchain by something else ?

At least the compiler. The Coherent compiler is an ANSI C compiler with a reasonably good optimiser on it. The tree seems to have versions for 8086, 80286 (protected mode included) and 80386 (which is probably not useful)

Quoted 2 lines

By the way, for the background, could you also tell what is the toolchain you target for Fuzix on 8080/Z80 ?

Z80 uses SDCC. I kep a couple of patches on top, one for compactness which sdcc has now partially adopted, the other of which adds support for banked binaries.

6502 uses cc65

6809, 68000 use gcc

8086 I did a test build of the core with bcc, but would probably use the coherent compiler eventually if it did 8086. Not sure there is that much point doing 8086, fixing the dumber bits ELKS inherited from 32bit Linux would probably shrink it down to the point the size change wasn't that big a deal.

Alan

#3 lore raw

Hello,

Thanks for the interesting info about various toolchains for Fuzix. I wonder why you include x86_16 target in the Fuzix challenge, as ELKS is already playing on that ground, but that is your baby, so...

Back to ELKS : from what I see in the Coherent tree ('duff' was my friend to have a more clear view), CC and AS386 output object files in COFF, not A.OUT as BCC and AS86, so we would have to migrate to the associated LD386, and update other tools as DIS88 (and the upcoming MON86 and EMU86, scoop!). And despite that move, staying out of the mainsteam on an unmaintained toolchain...

I am afraid it would be a too heavy workload just to have fun with old hardware or for learning purpose. I would instead spend my spare time in splitting the recursive parser / code generator in BCC to keep it simple, easy understandable and more maintainable (BCC = Basic C Compiler for Beginner ?), following the PCC design without portability in mind, and to be able to improve the register allocator without dealing with any generic register representation as in GCC.

The latest because I see Juan or Jody saving few bytes with big effort, while many bytes could be saved at the root by optimizing register usage in function bodies (starting with the SI / DI push / pop for nothing); and because I am already breaking the 64K segment limit with a first draft of an Ethernet driver for my board. ANSI non-compliance is not really a concern at that stage. But I could understand my rational is only valid for my specific use case...

Regards,

MFLD

Quoted 10 lines · Alan Cox

Started to have a look to that huge stuff (not really sorted...), but could you please explain the idea you have in mind ? Is this a suggest to replace the DEV86 toolchain by something else ?

Quoted 1 line

At least the compiler. The Coherent compiler is an ANSI C compiler with a

reasonably good optimiser on it. The tree seems to have versions for 8086, 80286 (protected mode included) and 80386 (which is probably not useful)

Quoted 1 line

8086 I did a test build of the core with bcc, but would probably use

the coherent compiler eventually if it did 8086. Not sure there is that much point doing 8086, fixing the dumber bits ELKS inherited from 32bit Linux would probably shrink it down to the point the size change wasn't that big a deal. Alan

--
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#4 lore raw
Quoted 5 lines · On Thu, 16 Apr 2015 09:35:34 +0200 MFLD <[email protected]> wrote:

Hello,

Thanks for the interesting info about various toolchains for Fuzix. I wonder why you include x86_16 target in the Fuzix challenge, as ELKS is already playing on that ground, but that is your baby, so...

I built the core that way mostly to check it compiled. Just portability testing.

Quoted 4 lines

Back to ELKS : from what I see in the Coherent tree ('duff' was my friend to have a more clear view), CC and AS386 output object files in COFF, not A.OUT as BCC and AS86, so we would have to migrate to the

as386 outputs coff for 386 code. The 286/8086 ones appear to produce *.out (a.out/l.ou/x.out) type formats.

Quoted 3 lines

splitting the recursive parser / code generator in BCC to keep it simple, easy understandable and more maintainable (BCC = Basic C Compiler for Beginner ?), following the PCC design without portability

Bruce's C compiler after the man who wrote it, initially for 6809 and later for 8086.

Quoted 2 lines

in mind, and to be able to improve the register allocator without dealing with any generic register representation as in GCC.

That and an ANSI parser would make a huge difference I agree.

Quoted 7 lines

The latest because I see Juan or Jody saving few bytes with big effort, while many bytes could be saved at the root by optimizing register usage in function bodies (starting with the SI / DI push / pop for nothing); and because I am already breaking the 64K segment limit with a first draft of an Ethernet driver for my board. ANSI non-compliance is not really a concern at that stage. But I could understand my rational is only valid for my specific use case...

ANSI is valuable for debug.

For size I'd also look at things like wait queues and any repetetive long winded pieces of code (eg Linux style wait queues). There certainly was plenty of stuff in ELKS that was taken from 386 Linux and is perhaps somewhat over-engineered for the job (buffer cache is perhaps one bit still)

Going to multiple-segments for code isn't too difficult providing you don't follow every detail of pointers to function, but just stick to arrays of function pointers or function pointers within segment, but always seems to me like admitting defeat 8)

Alan