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


Groups > comp.lang.forth > #45016

Small strings as ints

From Ron Aaron <rambamist@gmail.com>
Newsgroups comp.lang.forth
Subject Small strings as ints
Date 2016-01-22 08:41 +0200
Organization A noiseless patient Spider
Message-ID <n7sip2$dpr$1@dont-email.me> (permalink)
References <ff9ea42c-37b1-496c-9bad-449ca7805010@googlegroups.com> <abf1fc70-ed98-43ae-a581-1497ccf726d5@googlegroups.com>

Show all headers | View raw



On 22/01/2016 08:30, Raimond Dragomir wrote:

> Probably I'm not a typical forther, my stacks grows especially because
> of local variables usage. I even use small strings (let's say up to 32 chars)
> as local variables.

Hey!  Sticking a small string inside an 'int'... that sounds like a
possibly interesting optimization!  Only problem is it would add some
overhead to decide whether the string was allocated on the heap or
sitting inside an int...

Has anyone tried this?

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


Thread

Stack space size Brad Eckert <hwfwguy@gmail.com> - 2016-01-21 21:50 -0800
  Re: Stack space size hughaguilar96@gmail.com - 2016-01-21 22:00 -0800
  Re: Stack space size Raimond Dragomir <raimond.dragomir@gmail.com> - 2016-01-21 22:30 -0800
    Small strings as ints Ron Aaron <rambamist@gmail.com> - 2016-01-22 08:41 +0200
      Re: Small strings as ints Raimond Dragomir <raimond.dragomir@gmail.com> - 2016-01-21 23:41 -0800
        Re: Small strings as ints Ron Aaron <rambamist@gmail.com> - 2016-01-22 09:50 +0200
      Re: Small strings as ints Ron Aaron <rambamist@gmail.com> - 2016-01-24 07:15 +0200
  Re: Stack space size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-22 15:31 +0000
  Re: Stack space size Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-22 17:10 -0500
    Re: Stack space size Coos Haak <chforth@hccnet.nl> - 2016-01-22 23:21 +0100
      Re: Stack space size "Elizabeth D. Rather" <erather@forth.com> - 2016-01-22 13:28 -1000
        Re: Stack space size hughaguilar96@gmail.com - 2016-01-25 21:23 -0800
    Re: Stack space size "HAA" <someone@microsoft.com> - 2016-01-24 00:08 +1100
    Re: Stack space size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-26 16:23 +0000

csiph-web