English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language

 
 
Thread Tools
Old 13 November 2017, 19:57   #1
steve_mynott
Registered User
 
Join Date: Jul 2014
Location: london
Posts: 33
Native code BCPL compiler for Amiga?

Is (or was) a native code compiler for BCPL available?

I assume MetaComCo must have one and I remember they advertised dev tools in the early 80s (although I've failed to find a copy of their ad on the net).

And I'm aware of the interpreter version on aminet.
steve_mynott is offline  
AdSense AdSense  
Old 14 November 2017, 01:45   #2
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,533
Indeed there was one from Metacomco.
idrougge is offline  
Old 14 November 2017, 02:46   #3
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
MetaComco's BCPL for the Sinclair QL

using google: site:archive.org metacomco bcpl reveals some result

but I cannot find it for the amiga in my collection.

other metacomco software i found (not yet in tosec it seems):
Metacomco-ABasiC_v1.00_1985
Metacomco-Pascal_v3.04.01
Metacomco-ToolKit_v1.2
Metacomco-Macro.Assembler_v11.0
Metacomco-Shell_v1.25
Metacomco-Lisp_v0.9

I can make a zip and zone it, if you want.

Last edited by emufan; 14 November 2017 at 04:11.
emufan is offline  
Old 14 November 2017, 08:35   #4
Locutus
Registered User

 
Join Date: Jul 2014
Location: Finland
Posts: 835
I'd be interested in the Metacomco LISP.
Locutus is offline  
Old 14 November 2017, 11:08   #5
steve_mynott
Registered User
 
Join Date: Jul 2014
Location: london
Posts: 33
Yes please upload the Metacomco tools!

I'm starting to wonder whether the Amiga BCPL compiler was ever made available.

I've found ads from Feb 86 listing QL and ST tools but not a MMC Amiga ad.
steve_mynott is offline  
Old 14 November 2017, 12:02   #6
dalek
Registered User

 
Join Date: Nov 2014
Location: NSW/Australia
Posts: 207
From here: http://www.pagetable.com/?p=34
Quote:
The AmigaDOS manual says that “the tools available on the Sun Microsystem for cross development include the assembler, linker, and two C compilers.” One compiler is explicitly mentioned: It is the “Greenhills C compiler” (metacc; the name suggests it was Metacomco’s shipping C compiler for Tripos); the other one is presumably PCC. According to this resume, the first versions of the ROM were compiled using the Greenhills C compiler.
So maybe there wasn't a native BCPL compiler - maybe the Metacomo one was for SunOS?
dalek is offline  
Old 14 November 2017, 14:21   #7
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Quote:
Originally Posted by Locutus View Post
I'd be interested in the Metacomco LISP.
zoned:
MetaComco-Collection.zip
Lisp Pascal Toolkit Assembler ABasic Shell

the lisp disk comes with df0:L/Lisp/BCPLread and some tools ( df0:c/download )
to transfer "Sun" files (readable text in the binary).
filestamps from nov 1985.

#1) is there an ebook / manual for MCC Lisp?

Last edited by emufan; 14 November 2017 at 14:46.
emufan is offline  
Old 14 November 2017, 14:48   #8
steve_mynott
Registered User
 
Join Date: Jul 2014
Location: london
Posts: 33
Quote:
Originally Posted by dalek View Post
From here: http://www.pagetable.com/?p=34


So maybe there wasn't a native BCPL compiler - maybe the Metacomo one was for SunOS?
Yes that would make a lot of sense since prototype Amiga hardware would have been in short supply (particularly in the UK) and probably buggy then and the Suns at the time were 68K based.
steve_mynott is offline  
Old 14 November 2017, 15:54   #9
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Quote:
Originally Posted by emufan View Post
#1) is there an ebook / manual for MCC Lisp?
while it does work with quickstart a500 - running 'lisp' on my a1200 8mb chip / 512 fast, 030/882 kick/wb 3.1
gives an error message: "not enough store to load core image"

there are some options - 'lisp ?' - but I cant make it work.

any idea?
emufan is offline  
Old 14 November 2017, 16:16   #10
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,939
I don't think Cambridge LISP is compatible with 32-bit addressing. You could try running NoFastMem first, or use a config that doesn't have memory outside the lower 16MB. And/or check the 24-bit addressing box in CPU settings.
mark_k is offline  
Old 14 November 2017, 22:48   #11
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,939
There probably wasn't a (public) BCPL compiler for the Amiga. However with the leaked AmigaOS 3.1 source is what looks like a compiler executable for Sun (680x0) workstation, and the source code for that (in BCPL and 68000 assembler).

If you can get the Sun BCPL compiler working (do NetBSD or Linux support running M68K SunOS executables?), you could use that to compile an Amiga executable of the compiler.

Last edited by mark_k; 15 November 2017 at 13:56.
mark_k is offline  
Old 15 November 2017, 22:50   #12
nogginthenog
Amigan

 
Join Date: Feb 2012
Location: London
Posts: 604
Back in the 90's I was a student working for Philips Research in Eindhoven.
I had an old '030 Sun workstation running SunOS. Most employees had Sparc Stations. The WWW was a new thing back then!

I was at Amiga32 in Germany where Dr. Tim King & his wife gave a great talk about TripOS and the Amiga. For me it was the most interesting presentation.
nogginthenog is offline  
Old 16 November 2017, 00:29   #13
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
The Machine Emulator does emulate sun3 68k based machines.
Sun Archive - archive of Sun3 OS 68k based.
Installing SunOS 4.1.1 to Sun3 Emulated in TME 0.8 on Linux

Last edited by emufan; 16 November 2017 at 00:36.
emufan is offline  
Old 16 November 2017, 00:41   #14
steve_mynott
Registered User
 
Join Date: Jul 2014
Location: london
Posts: 33
Quote:
Originally Posted by mark_k View Post
There probably wasn't a (public) BCPL compiler for the Amiga. However with the leaked AmigaOS 3.1 source is what looks like a compiler executable for Sun (680x0) workstation, and the source code for that (in BCPL and 68000 assembler).

If you can get the Sun BCPL compiler working (do NetBSD or Linux support running M68K SunOS executables?), you could use that to compile an Amiga executable of the compiler.
I've found that src under "os-source/v40/tools/src/bcpl" and notice some of the filenames are the wrong case for the "bcpl.ld" target (so clearly the src was copied off an Amiga and not a Sun!).

There are two Sun 68K binaries -- one for a 68010 and the other for 68020. It looks like NetBSD/sun3 on The Machine Emulator might run the latter if some libs are copied from https://winworldpc.com/product/sunos/3x. It might also be possible to emulate SunOS 3 or use Linux.

A friend had one of the Sun 68K systems but it was about the size of a huge washing machine and I'm not sure it ever worked!
steve_mynott is offline  
Old 16 November 2017, 00:52   #15
steve_mynott
Registered User
 
Join Date: Jul 2014
Location: london
Posts: 33
Thumbs up

Quote:
Originally Posted by emufan View Post
The Machine Emulator does emulate sun3 68k based machines.
Sun Archive - archive of Sun3 OS 68k based.
Installing SunOS 4.1.1 to Sun3 Emulated in TME 0.8 on Linux
That looks a simpler route than NetBSD!
steve_mynott is offline  
Old 16 November 2017, 01:01   #16
steve_mynott
Registered User
 
Join Date: Jul 2014
Location: london
Posts: 33
Quote:
Originally Posted by nogginthenog View Post
Back in the 90's I was a student working for Philips Research in Eindhoven.
I had an old '030 Sun workstation running SunOS. Most employees had Sparc Stations. The WWW was a new thing back then!

I was at Amiga32 in Germany where Dr. Tim King & his wife gave a great talk about TripOS and the Amiga. For me it was the most interesting presentation.
Video is available at [ Show youtube player ]
steve_mynott is offline  
Old 16 November 2017, 03:52   #17
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Quote:
Originally Posted by steve_mynott View Post
That looks a simpler route than NetBSD!
I was finaly able - after some attempt many moons ago - to build it under cygwin/X
cannot find a win32 build anywhere, so this is at least a good starting point.

if you want build it under current cygwin:
1) temporarly disable cygwins ltdl.h and libltdl.a ( rename them to ltdl.h_OFF / libltdl.a_OFF )
2) ./configure --disable-warnings --disable-shared
3) make
4) should work til it starts linking "undefined reference to `XFree'" and more:
tmesh/Makefile: add -lX11 to GTK_LIBS definition:
GTK_LIBS = -lgtk-x11-2.0 ... -lfreetype -lX11

this will create a working tmesh.exe
5) make install and follow the howto above.

for the x11 part, use aewm++ windowmanager, fvwm is unstable.
startx /usr/bin/aewm++.exe and start tmesh.exe from within the x11 environment (see howto above)
Attached Thumbnails
Click image for larger version

Name:	sun3.png
Views:	69
Size:	7.2 KB
ID:	55447  

Last edited by emufan; 16 November 2017 at 04:18.
emufan is offline  
Old 16 November 2017, 08:22   #18
Locutus
Registered User

 
Join Date: Jul 2014
Location: Finland
Posts: 835
sorta offtopic: you dont need a window manager for X11 applications on Cygwin just run your X server in 'rootless' mode, i think Cygwin even supplies you a startmenu shortcut for it.
Locutus is offline  
Old 16 November 2017, 14:11   #19
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,939
NetBSD/amiga should be able to run SunOS binaries so you might find doing that on WinUAE (download a pre-installed NertBSD HDF) easier than figuring out Sun emulation. I didn't try that yet.

Edit: Seems it might not be quite that simple. From the compat_sunos man page, if the SunOS executable you want to run isn't statically linked, you need to copy various libraries from a SunOS installation.

Last edited by mark_k; 16 November 2017 at 14:31.
mark_k is offline  
Old 16 November 2017, 16:29   #20
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Quote:
Originally Posted by Locutus View Post
sorta offtopic: you dont need a window manager for X11 applications on Cygwin just run your X server in 'rootless' mode, i think Cygwin even supplies you a startmenu shortcut for it.
thanks. i was missing xlaunch, it does work now.
once started, open new cygwin window, export DISPLAY=0:0
next tmesh.exe <config file> does start

#1) using the howto above, i get a bus error, after format/partitioning *damn* :/

Last edited by emufan; 16 November 2017 at 17:15.
emufan is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to write native code? arodgers support.FS-UAE 4 02 September 2016 19:53
FS-UAE Native Code? jdog320 support.FS-UAE 2 26 July 2016 11:03
amiga c/c++ compiler Fissuras request.Apps 41 18 June 2012 20:50
native x86 code in WinUAE? Falk support.WinUAE 15 14 June 2008 12:58
Best C Compiler for Amiga is? Pyromania Amiga scene 5 14 May 2002 17:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.09628 seconds with 14 queries