🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.pascal
Article #92500

Re: Turbo Pascal - align 16

#92500
From: Daniel Janus
Date: Mon, 10 Mar 2008 08:34
20 lines
1710 bytes
Dnia 09.03.2008 Wiktor S. <wswiktor&poczta> napisał/a:
> Próbuję dokonać rzeczy dość karkołomnej - zastosować SSE (a właściwie SSSE3) 
> pod Turbo Pascalem 7 /proszę nie pytać o sens ;-)/. Oczywiście instrukcje 
> trzeba kodować ręcznie, przez "db", ale nie to jest problem. Chodzi o to, że 
> adresy w pamięci (bufory, zmienne) muszą być wyrównywane do 16 bajtów, 
> podczas gdy TP wyrównuje tylko do 2. Czy da się to jakoś przeskoczyć?

hmm... zaalokować bufor większy o piętnaście bajtów niż nominalnie i potem:

   RealBuf := Ptr(Seg(Buf^), (Ofs(Buf^) or 15) + 1)

?

(just an idea, dawno nie widziałem pascala na oczy, a już szczególnie TP...)

-- 
Daniel 'Nathell' Janus, moveat@nathell.korpus.pl, http://korpus.pl/~nathell
"Though a program be but three lines long, someday it will have to be
maintained."
   -- The Tao of Programming 
Technical Details
Message-ID: <slrnft9sk6.i0m.przesunmalpe@students.mimuw.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <fr0gnk$a4v$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Daniel Janus <przesunmalpe@nathell.korpus.pl>
Newsgroups: pl.comp.lang.pascal
Subject: Re: Turbo Pascal - align 16
Date: Mon, 10 Mar 2008 08:34:14 +0000 (UTC)
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 20
Message-ID: <slrnft9sk6.i0m.przesunmalpe@students.mimuw.edu.pl>
References: <fr0gnk$a4v$1@news.onet.pl>
Reply-To: przesunmalpe@nathell.korpus.pl
NNTP-Posting-Host: students.mimuw.edu.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1205138054 25255 193.0.96.129 (10 Mar 2008 08:34:14 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Mon, 10 Mar 2008 08:34:14 +0000 (UTC)
X-User: anonymous
User-Agent: slrn/0.9.8.1pl1 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit