public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* how to add new instructions in gcc and test
@ 2004-12-14 14:20 aram bharathi
  2004-12-15 18:47 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: aram bharathi @ 2004-12-14 14:20 UTC (permalink / raw)
  To: sid

hi to all,
         i like to upgrade the gcc with some more extra instructions for the ARM processor. but if i write the new instruction then how can i check the newly added instructions are working correctly or not. and how can i verify the output is correct!!!

whether arm-gdb is a good solution. i have downloaded and installed the sid whether it will be useful for these kind of need...

thanks for reply
-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to add new instructions in gcc and test
  2004-12-14 14:20 how to add new instructions in gcc and test aram bharathi
@ 2004-12-15 18:47 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2004-12-15 18:47 UTC (permalink / raw)
  To: aram bharathi; +Cc: sid

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

Hi -

On Tue, Dec 14, 2004 at 08:20:25PM +0600, aram bharathi wrote:
> [...]
> i like to upgrade the gcc with some more extra instructions for the ARM
> processor. but if i write the new instruction then how can i check the
> newly added instructions are working correctly or not. and how can i
> verify the output is correct!!! [...]

You need some way of getting gcc to trigger those extra instructions,
whether it's inline assembly or something else.  Add such a program
to the gcc test suite, and include assertions to confirm that the
instructions did the right thing (assuming they change simple testable
state like memory or registers).

Then you need to update one of the arm simulators (the one in gdb, or
sid's cgen version) to model the new instructions.  This part of the
work is not well documented, but it's not too scary.

Finally, you run the gcc test suite against the arm simulator
of your choice.

- FChE

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-15 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-14 14:20 how to add new instructions in gcc and test aram bharathi
2004-12-15 18:47 ` 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).