Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: problems with jonesforth Date: Thu, 10 Oct 2013 17:54:36 -0400 Organization: Aioe.org NNTP Server Lines: 53 Message-ID: References: <5255345b$0$603$e4fe514c@dreader34.news.xs4all.nl> NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.forth:26381 On Wed, 09 Oct 2013 06:47:55 -0400, Albert van der Horst wrote: > On a 64 bit Debian linux system: > A straightforward build using the prescribed > gcc -m32 -nostdlib -static -Wl,-Ttext,0 -Wl,--build-id=none -o > jonesforth jonesforth.S > results in an unusable system: > > albert@cherry:~/PROJECT/albertjones$ jonesforth > killed > > An improvement is to leave out the requirement to start the text segment > at address 0: > gcc -m32 -nostdlib -static -Wl,--build-id=none -o jonesforth > jonesforth.S > > A startup using > > cat jonesforth.f - | jonesforth > Well, since you said it's not a processor size mismatch, I decided to give it a try. I downloaded version 1.47 of jonesforth.s and jonesforth.f. I used the exact gcc line you posted above to compile. I had to use a slight variation of your 'cat' line: cat jonesforth.f - | ./jonesforth It works. '3 .' prints 3 . There is no -1 CELLS message. WORDS works. QUIT had to be used to exit instead of BYE ... Lowercase 'bye' works to exit also, although uppercase 'BYE' is listed by WORDS. Uppercase 'BYE' doesn't exit. This was on a 64-bit Vector Linux (VLocity) in Xfce's Terminal Emulator. Version 1.47 is available at Richard Jones' GIT repository: http://rwmj.wordpress.com/2010/08/07/jonesforth-git-repository/ I followed the first link in the blog to git.annexia.org, then "version 47", then "tree", then "raw" options to get code for jonesforth.s and jonesforth.f. Unless your version is out of date, I doubt that was of much help. I know there were some patches and fixes for Jonesforth posted to c.l.f and elsewhere. Could one of those be the problem? Rod Pemberton