platform() and porting update - WAS: To Euphoria Porters!

new topic     » topic index » view thread      » older message » newer message

:::: platform() ::::

I can appreciate why Rob decided to have the FreeBSD version of platform()
return LINUX (3).  They are very similar because they are running on Intel
hardware.  A port to HP-UX or Solaris would probably justify a HPUX (4) and
SOLARIS (5) respectively but, as has been pointed out, this would require
some coordination.

My take would be to depreciate LINUX (3) over time and use UNIX (3) instead
for any UNIX based port.  If you then want your code to know if you are
running a particular version of UNIX then I would code up a function, say
unixplatform(), that returns a string.  What string?  Well the single line
of output you get on a UNIX system when the:

uname -a

command is typed.  For example a HP-UX 11.00 system gives you:

HP-UX gromit B.11.00 U 9000/800 2009017648 unlimited-user license

(yes "gromit" is the system's host name).  By parsing this string you can
make a good (if sometimes educated) guess at the type of UNIX platform you
are running on.

:::: porting update ::::

I got my Sun Ultra-1 system working at home at the weekend.  Installing the
CD-ROM was fun.  I tried nearly every combination of jumper settings before
I discovered that the jumper setting for "sector size" needed to be set.
I've got install media for Solaris 2.5.1, 2.6 and 7.  I'll probably go for a
2.6 post first so I'll need ncurses and gcc for 2.6 downloaded from the net
before I can start.

ncurses is proving a bigger hassle than I thought.  Because the exu I made
on HP-UX 11.00 is dynamically linked it will only work on other HP-UX 11.00
systems that have the same or higher version of ncurses loaded.  I need to
look at statically linking exu but this will bulk out the size but might be
the safest approach to having a port work "out of the box".

More news as it happens smile

Regards,

Andy Cranston.

-----Original Message-----
From: petelomax at blueyonder.co.uk [mailto:petelomax at blueyonder.co.uk]
Sent: 30 September 2002 23:25
To: EUforum
Subject: Re: To Euphoria Porters!



On Mon, 30 Sep 2002 13:24:54 -0500, Travis Beaty <tbeaty at mach3ww.com>
wrote:

>I'm working on a project which needs to be designed so that it will run 
>on all platforms to which Euphoria is ported.

Do tell. I'd love to see something nice & single source which runs
just on both Winduz & Linux. Nice meaning reasonable GUI.

Pete
PS I do believe some peeps are working on this so an update on their
progress would be nice too.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu