* About CGEN's RTL
@ 2002-10-07 5:28 姹 缈
2002-10-07 8:00 ` Frank Ch. Eigler
0 siblings, 1 reply; 2+ messages in thread
From: 姹 缈 @ 2002-10-07 5:28 UTC (permalink / raw)
To: cgen
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 918 bytes --]
hi
I am now trying to write an .cpu file whose ISA contains some complex
instructions, thereby it needs to invoke c code using c-code,c-call or
c-raw-call.
I found in sparccom.cpu that there is an expression of (c-call made symbol
operand1 operand2 ...). It says in the comment that 'symbol' is a c
function. I guess this expression means an c function call, and the
function was like symbol(operand1, operand2 ...), isn't it? If so, where is
the function symbol(operand1 operand2 ...)? In the cpu description of
sparccom, I found (set rd (c-call WI handler pc rs1 rs2)), but I can't
find the function description of 'handler'!
Where do I write the c funtion how to announce it to the .cpu
file?
thank you for your help!
Dam Wang
_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£http://www.hotmail.com/cn
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: About CGEN's RTL
2002-10-07 5:28 About CGEN's RTL 姹 缈
@ 2002-10-07 8:00 ` Frank Ch. Eigler
0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2002-10-07 8:00 UTC (permalink / raw)
To: æ± ç¿; +Cc: cgen
[-- Attachment #1: Type: text/plain, Size: 677 bytes --]
Hi -
On Mon, Oct 07, 2002 at 12:28:30PM +0000, æ± ç¿ wrote:
> [...]
> I found in sparccom.cpu that there is an expression of (c-call made symbol
> operand1 operand2 ...). It says in the comment that 'symbol' is a c
> function. I guess this expression means an c function call, and the
> function was like symbol(operand1, operand2 ...), isn't it? If so, where is
> the function symbol(operand1 operand2 ...)? [...]
Such functions would be placed into the hand-written portions that
accompany that CGEN-generated kernels of the CPU simulators. See
for example the c-calls in the arm7.cpu, as implemented in
sid/component/cgen-cpu/arm7t/arm7f.cxx.
- FChE
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-07 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-07 5:28 About CGEN's RTL 姹 缈
2002-10-07 8:00 ` Frank Ch. Eigler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).