Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!versatc!leadsv!kallaus From: kallaus@leadsv.UUCP (Jerry Kallaus) Newsgroups: comp.lang.forth Subject: Re: Forth String Handling Words Summary: Inline assembly code Keywords: Forth, Strings, Words Message-ID: <6239@leadsv.UUCP> Date: 14 Apr 89 20:16:03 GMT References: <8904040204.AA21175@jade.berkeley.edu> <1868@umbc3.UMBC.EDU> <183@isctsse.UUCP> <1880@umbc3.UMBC.EDU> <195@isctsse.UUCP> Reply-To: kallaus@leadsv.LEADS.LMSC.COM.UUCP (Jerry Kallaus) Organization: LMSC-LEADS, Sunnyvale, Ca. Lines: 26 [] Thanks for posting your string package. Looks good! I noticed your use of JForth assemlby code. With JForth's forward Motorola format assembler, the only way that I've found to get inline code generation is the following: ASM 3+ addq.l #3,tos FORTH{ both } END-CODE where "both" is the JForth word that indicates the current word being defined may compile inline code when referenced if it's size is no more than specified in the global variable max-inline, otherwise "call" the word. Actually, there's more involved, but that's the basic idea. Anyway, this seems to work; if any JForth'ers here see anything questionable about this, I'd like to know about it. -- Jerry Kallaus {pyramid.arpa,ucbvax!sun!suncal}leadsv!kallaus (408)742-4569 "Funny, how just when you think life can't possibly get any worse, it suddenly does." - Douglas Adams