If the instructions aren't absolutely performance critical, it's easier to put them in a separate .s file in functions and just call the functions. See how the m5-specific instructions are done in util/m5.
Steve On Sat, Apr 3, 2010 at 3:28 PM, soumyaroop roy <[email protected]> wrote: > Hi Pritha, > If your program is in assembly, then you'd just have to make changes to the > Alpha assembler (in binutils). If your program is in C (or any other high > level language), then you'd also have to make changes to the alpha machine > description file (<gcc-root>/gcc/config/alpha/alpha.md) to specify how to > emit your specialized instructions in assembly from GCC's RTL > representation. You'll find information about it in the gcc internals > documentation (http://gcc.gnu.org/onlinedocs/gccint/). > regards, > Soumyaroop > > On Sat, Apr 3, 2010 at 5:52 PM, Pritha Ghoshal <[email protected]> wrote: >> >> Hi, >> >> We need to make some modifications to the Alpha ISA and insert a few more >> instructions. But while compiling a program through crosscompiler, we need >> to let the cross compiler know about the new instructions. I guess we need >> to modify the assembler code of gcc for that. >> >> Could someone help us about how to do this and is there any other way? >> >> -- >> Pritha Ghoshal >> >> >> _______________________________________________ >> m5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > > > > -- > Soumyaroop Roy > Ph.D. Candidate > Department of Computer Science and Engineering > University of South Florida, Tampa > http://www.csee.usf.edu/~sroy > > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > _______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
