Download VIS Instruction Set User`s Manual
Transcript
VIS Instruction Set User’s Manual 3.2 Development Process Overview Code written using the VIS instruction set may be compiled and run in three ways: 1. Compile your VIS code using the SPARCompiler 4.x directly to generate object code for execution on the UltraSPARC CPU. 2. Compile your VIS code using any compatible, not necessarily a SPARCompiler 4.x, C compiler and link with “libvis_sim.so” or “libvis_ sim.a”, a VIS instruction simulator, to resolve VIS function calls. The VIS instruction simulator substitutes standard C implementations for the VIS instruction set which permits you to run your code on any compatible processor, not necessarily an UltraSPARC-I, to perform debugging and algorithm validation. 3. Compile and specially process your VIS code to run on INCAS (It’s a Nearly Cycle Accurate Simulator), which is a nearly cycle accurate model of the UltraSPARC-I processor. This permits you to do independent code performance prediction, cycle counting and debugging. 3.3 VIS Software Developer’s Kit The VIS Software Developer’s Kit (VSDK) is a set of tools and sample code designed to help in the development of VIS code. A bulk of the sample code in this and later chapters of this guide can be found in the VSDK. Before using the VSDK, the following environment variables must be defined: VSDKHOME - the root directory of the VIS Software Developers Kit INCASHOME - the root directory of INCAS If the SPARCompiler 4.x being used to compile VIS code is not the default compiler, then the environment variable, CC, needs to be set to point to the SC 4.x compiler, in order for the Makefiles in the VSDK to work. An example environment variable definition is: % setenv VSDKHOME /opt/SUNWvsdk % setenv INCASHOME /opt/SUNWincas Sun Microelectronics 22