🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #250

Re: BASM - Type to binary

#250
From: Raimo Suonio
Date: Sun, 25 Jul 1999 00:00
48 lines
2566 bytes
Robert AH Prins wrote in message <7nchk7$8rt$1@nnrp1.deja.com>...
>In article <7nb22t$p4o$1@tron.sci.fi>,
>  "Raimo Suonio" <raimo.suonio@qdlc.fi> wrote:
>>
>> I don't understand perfectly your question, I figure that you
haven't
>> written the assembler code for yourself.
>
>Explain? If you follow this group, you may very well be aware that I
am
>very much in favour of using BASM, not so much to increase speed, but
>far more to reduce the size of the code, TP6/BP7 aren't exactly very
>strong in that area, especially if your working with arrays and
>pointers (and arrays of pointers)

Oh, my apologies!  I don't have any profile about you.  I really
didn't understand the structure of your question, but it was due to me
having not english as my native language.  I understand it now after
the answer of Pedt Scragg.  Taking that into account, you wrote that
it took ages to find the correction needed after you changed the
element size, and that led me to the conclusion that you had got the
code from someone else and did not know it thoroughly.


>> Anyhow, it seems that the instruction is part of the code that
>> calculates the memory address offset out of the array index.  It
>> simply multiplied the index by 8 and now by 16.
>
>Oh wow, what an insight!
>>
>> If the element size
>> had not been a power of two, the code would have been a little more
>> complex.
>
>I'm stunned! NO, it would not have been more complex, because the
>compiler would have emitted a multiply. For speed reasons, less
>important nowadays, I always make the size of small structures that
are
>to be put in arrays a power of two.

Hey, you don't have to be that nasty.  I just tried to be helpful
according to the premisses I had.


--

Raimo Suonio
raimo.suonio@qdlc.fi (remove spam preventing q)
Technical Details
Message-ID: <7ndkq7$o4n$1@tron.sci.fi>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7naolk$5j$1@nnrp1.deja.com> <7nb22t$p4o$1@tron.sci.fi> <7nchk7$8rt$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111659,1574494622d1a1c7
X-Google-Attributes: gid111659,public
X-Google-Thread: 108ebd,1574494622d1a1c7
X-Google-Attributes: gid108ebd,public
From: "Raimo Suonio" <raimo.suonio@qdlc.fi>
Subject: Re: BASM - Type to binary
Date: 1999/07/25
Message-ID: <7ndkq7$o4n$1@tron.sci.fi>
X-Deja-AN: 504896648
Content-Transfer-Encoding: 7bit
References: <7naolk$5j$1@nnrp1.deja.com> <7nb22t$p4o$1@tron.sci.fi> <7nchk7$8rt$1@nnrp1.deja.com>
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: SAUNALAHDEN SERVERIN asiakas
Mime-Version: 1.0
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal