* Calling C functions
@ 2002-03-12 1:53 Jose Luis Ayala
2002-03-12 2:01 ` Frank Ch. Eigler
2002-03-12 2:02 ` Ben Elliston
0 siblings, 2 replies; 5+ messages in thread
From: Jose Luis Ayala @ 2002-03-12 1:53 UTC (permalink / raw)
To: cgen
Hi,
I'm working with the arm7.cpu architecture and I've addded calls to C
functions with c-raw-call sentences. These functions have been written
into an arm7.opc file. However, recompilation of the opcodes directory
does not read this file and does not generate the resulting files.
Does arm7.opc file have to follow any prototipe? Do I have to make any
change in any Makefile?
Thanks a lot!
Jose
--
--------
José Luis Ayala Rodrigo Phone: 34-91-5495700 ext.420/544
Dpto. Ingeniería Electrónica Fax: 34-91-3367323
ETSI Telecomunicación
Ciudad Universitaria s/n Email: jayala@die.upm.es
28040 Madrid (Spain) Web: www-lsi.die.upm.es/~jayala
Linux Registered User #182215
-------------------------------------------------------------------------
"Teoría es cuando se sabe todo y nada funciona; práctica, cuando todo
funciona y nadie sabe por qué."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Calling C functions
2002-03-12 1:53 Calling C functions Jose Luis Ayala
@ 2002-03-12 2:01 ` Frank Ch. Eigler
2002-03-12 2:02 ` Ben Elliston
1 sibling, 0 replies; 5+ messages in thread
From: Frank Ch. Eigler @ 2002-03-12 2:01 UTC (permalink / raw)
To: Jose Luis Ayala; +Cc: cgen
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]
Hi -
On Tue, Mar 12, 2002 at 10:53:19AM +0100, Jose Luis Ayala wrote:
> I'm working with the arm7.cpu architecture and I've addded calls to C
> functions with c-raw-call sentences. These functions have been written
> into an arm7.opc file. However, recompilation of the opcodes directory
> does not read this file and does not generate the resulting files.
> [...]
The bodies of functions that define c-calls go straight into the
appropriate simulator source files, and not into the .opc file.
- FChE
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Calling C functions
2002-03-12 1:53 Calling C functions Jose Luis Ayala
2002-03-12 2:01 ` Frank Ch. Eigler
@ 2002-03-12 2:02 ` Ben Elliston
2002-03-12 17:58 ` Johan Rydberg
1 sibling, 1 reply; 5+ messages in thread
From: Ben Elliston @ 2002-03-12 2:02 UTC (permalink / raw)
To: Jose Luis Ayala; +Cc: cgen
Hi.
>>>>> "Jose" == Jose Luis Ayala <jayala@die.upm.es> writes:
Jose> I'm working with the arm7.cpu architecture and I've addded calls to C
Jose> functions with c-raw-call sentences. These functions have been written
Jose> into an arm7.opc file. However, recompilation of the opcodes directory
Jose> does not read this file and does not generate the resulting
Jose> files.
It would probably be best to post some fragments of your .opc file, if
you can, but from memory, the .opc file must follow the name of the
arch (as defined in the cpu description), not the filename of the .cpu
file. This is, admittedly, a bit of a gotcha.
Try renaming arm7.opc to arm.opc and regenerate--see if that helps.
Ben
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Calling C functions
2002-03-12 2:02 ` Ben Elliston
@ 2002-03-12 17:58 ` Johan Rydberg
2002-03-12 18:41 ` Ben Elliston
0 siblings, 1 reply; 5+ messages in thread
From: Johan Rydberg @ 2002-03-12 17:58 UTC (permalink / raw)
To: cgen
[re-sent to list due to spam-blocking on my e-mail address]
On 2002.03.12 10:59 Ben Elliston wrote:
: Try renaming arm7.opc to arm.opc and regenerate--see if that helps.
It can not be that easy that Jose just forgot to configure with
--enable-cgen-maint ? From memory, I think that must be enabled to
enable the regenerate rules in opcodes/Makefile.[am|in|]
regards
johan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Calling C functions
2002-03-12 17:58 ` Johan Rydberg
@ 2002-03-12 18:41 ` Ben Elliston
0 siblings, 0 replies; 5+ messages in thread
From: Ben Elliston @ 2002-03-12 18:41 UTC (permalink / raw)
To: Johan Rydberg; +Cc: cgen
>>>>> "Johan" == Johan Rydberg <jrydberg@rtmk.org> writes:
Johan> It can not be that easy that Jose just forgot to configure with
Johan> --enable-cgen-maint ? From memory, I think that must be enabled to
Johan> enable the regenerate rules in opcodes/Makefile.[am|in|]
The rules are still present in the opcodes Makefile; they just aren't
a dependency rule for `make all' which is what --enable-cgen-maint
does.
Ben
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-03-13 2:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-12 1:53 Calling C functions Jose Luis Ayala
2002-03-12 2:01 ` Frank Ch. Eigler
2002-03-12 2:02 ` Ben Elliston
2002-03-12 17:58 ` Johan Rydberg
2002-03-12 18:41 ` Ben Elliston
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).