Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!zen.net.uk!dedekind.zen.co.uk!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: Metrics on stack usage Date: Thu, 02 Oct 2014 07:53:03 -0400 Organization: Aioe.org NNTP Server Lines: 26 Message-ID: References: <541855C0.2558D27D@bytecraft.com> <560eaa51-4dfc-4ff4-af5b-0831f3250620@googlegroups.com> <58ae9a42-3926-40dd-beda-61cec74bab02@googlegroups.com> <542a92ff$0$15825$e4fe514c@dreader35.news.xs4all.nl> <12de3404-bee5-4e2e-b6bf-e126c6de2c71@googlegroups.com> <725ef6af-1e6a-43bc-a090-596b2a3b4026@googlegroups.com> NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; 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:33636 On Wed, 01 Oct 2014 21:45:13 -0400, wrote: > On Wednesday, October 1, 2014 1:44:06 AM UTC-7, Mark Wills wrote: >> Okay. I really have no insight as to how Forth cross-compilers >> work. From what i've read it's voodoo! > > I've never read anything about cross-compilers --- I'm entirely > self-taught on the subject. It shouldn't be that hard ... All a cross-compiler does is emit code for a different platform. The code emitted as assembly or coded in assembly must be converted to assembly or executable binary for the new host. I.e., all the low-level Forth words and "primitives" which use assembly must be emitted in assembly or executable binary for the new host. I.e., the high-level Forth words will be emitted as assembly or executable binary for Forth's that compile, and emitted as compiled interpretable Forth for Forth's that interpret. Rod Pemberton