Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: Forth16e, Forth32e, "de facto" forth programming standards for embedded Date: Tue, 22 Jul 2014 03:45:40 -0400 Organization: Aioe.org NNTP Server Lines: 26 Message-ID: References: <49aa991d-41c6-44ae-afe4-ad1b7434011b@googlegroups.com> <62cc3792-e246-4f0b-b671-c09908d5f3b0@googlegroups.com> <9f8a7188-7ef0-4ae4-8341-e27a41f9a44b@googlegroups.com> <836283a2-64a1-4811-b653-13a099fbbb46@googlegroups.com> <0ade3c7c-d1c0-41f5-8f5e-055d66aaff6b@googlegroups.com> <53c928c6.819888433@news.demon.co.uk> <7xmwc69rdv.fsf@ruckus.brouhaha.com> <7xegxi9pzi.fsf@ruckus.brouhaha.com> <7edd6024-75fc-4c09-a7a9-892cd8b2c176@googlegroups.com> <0cedfdec-1922-4cc3-a339-2c5b292eb485@googlegroups.com> <26e2e926-3fd3-46a9-8876-42f1570795b6@googlegroups.com> <7f8cc421-cfa5-4ff5-8c17-8cc3299101ad@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:32534 On Tue, 22 Jul 2014 00:35:58 -0400, wrote: > On Sunday, July 20, 2014 10:47:55 PM UTC-7, Raimond Dragomir wrote: >> > I'm not familiar with any C compiler, so it is not clear to me how to >> write wrappers for C functions so they can be called from Forth. This >> is something that I will have to learn, and that I haven't given much >> thought to. > > I should clarify. I know C as well as anybody (it is a pretty simple > language), and I have worked as a C/C++ programmer. > > I'm not familiar with any C compiler, in the sense that I know how it > passes data into functions internally. I used to be familiar with Turbo > C, back in MS-DOS days. Turbo C just passed everything in a stack-frame > --- pretty simple. Bingo! Not much has changed. We discussed C calling conventions in 2011 in c.l.f. and 2012 c.l.a.x. and ... cdecl http://en.wikipedia.org/wiki/X86_calling_conventions#cdecl Rod Pemberton