Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #30014

Re: gforth on 64bit

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: gforth on 64bit
Date 2014-04-30 18:19 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2014Apr30.201921@mips.complang.tuwien.ac.at> (permalink)
References <7zlhumd8wd.fsf@example.com>

Show all headers | View raw


David Hume <David.Hume@example.com> writes:
>I have a program wot I wrote in Forth, it works fine with gforth on 32
>bit linux. When I tried it on 64 bit linux it didn't work properly.

Your program may have some 32-bit dependency, like "4 +" instead of
"cell+".  You could fix that.

>The same program worked fine with SwiftForth on either platform.

SwiftForth is 32 bits on either platform.

>Maybe I need to do something differently when compiling gforth on the 64
>bit architecture?

You could compile a 32-bit version of Gforth even on a 64-bit
platform.  IIRC you need to configure with

./configure CC="gcc -m32"
#and then
make

You may need to install 32-bit libraries for that to work.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2014: http://www.euroforth.org/ef14/

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

gforth on 64bit David Hume <David.Hume@example.com> - 2014-04-30 18:28 +0100
  Re: gforth on 64bit anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-04-30 18:19 +0000
    Re: gforth on 64bit David Hume <David.Hume@example.com> - 2014-04-30 20:35 +0100
      Re: gforth on 64bit albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-04-30 20:22 +0000
      Re: gforth on 64bit Bernd Paysan <bernd.paysan@gmx.de> - 2014-04-30 23:46 +0200
      Re: gforth on 64bit anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-05-01 15:29 +0000

csiph-web