🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309158

Re: jak skompilowac "a = 2*f+(d-g/3)*(9-i)"

#309158
From: bartekltg
Date: Mon, 24 Apr 2017 11:10
29 lines
1900 bytes
On 24.04.2017 12:47, Przemek Biernat wrote:
> On Monday, February 13, 2017 at 8:48:44 PM UTC+1, (fir) wrote:
>> a f d g i mozna zalozyc ze sa to rejestry asemblera (np 32 bitowe floaty) potrzebuje po prostu kodu ktory przerabialby to co powyzej na odpowiedni kod w wirtualnym asemblerze, cos w stylu
>>
>> mov tmp1 2
>> mov tmp2 f
>> mul tmp1 tmp2
>>
>> mov tmp3 d
>> mov tmp4 g
>> mov tmp5 3
>> div tmp4 tmp3
>> sub tmp3 tmp4
>>
>> itd
>> (jako ze sam projektuje swoj asembler mozna tu sobie ulatwiac (np moge sobie dodac tyle rejestrow ile chce (i zalozyc ze wejsciowe
>> wyrazenia beda sie skladac tylko z 26 rejestrow od a do z i ze stalych)
>>
>> jak to napisac/zrobic ?
>>
>> sensowne hinty a jeszcze lepiej pseudokod bylby mile widziany, tnx
>
> A może by tak odwrotną notację polską zaprządz do działania?
>

W sumie po to komprocesor miał (ma:)) rejestry ułożone w stos.

pzdr
bartekltg
Technical Details
Message-ID: <odkmfe$n5d$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <6a6e4980-b3cc-41eb-8280-e080801f9db8@googlegroups.com> <292724b0-83c9-4426-8469-28340a133524@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: bartekltg <bartekltg@gmail.com>
Newsgroups: pl.comp.lang.c
Subject: Re: jak skompilowac "a = 2*f+(d-g/3)*(9-i)"
Date: Mon, 24 Apr 2017 13:10:38 +0200
Organization: ATMAN - ATM S.A.
Lines: 30
Message-ID: <odkmfe$n5d$1@node2.news.atman.pl>
References: <6a6e4980-b3cc-41eb-8280-e080801f9db8@googlegroups.com> <292724b0-83c9-4426-8469-28340a133524@googlegroups.com>
NNTP-Posting-Host: 89-70-119-159.dynamic.chello.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1493032239 23725 89.70.119.159 (24 Apr 2017 11:10:39 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Mon, 24 Apr 2017 11:10:39 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
In-Reply-To: <292724b0-83c9-4426-8469-28340a133524@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit