Texas Instruments TMS470R1x manual Compiler enhancements

Page 61

Release Enhancements

The section in which the entry point of a C program is defined cannot be marked as a conditionally linked section. The compiler marks all function veneers as conditionally linked.

You must link with the ±a linker option, which creates an absolute, execut- able output module, to enable conditional linking. The ±j linker option disables conditional linking.

For information on the .clink directive, see the Assembler Directives chapter of the TMS470R1x Assembly Language Tools User's Guide; for information on the ±j linker option, see the Linker Description chapter.

C compiler enhancements

The TMS470R1x optimizing C compiler enhancements are as follows. For more information, see the named chapter of the TMS470R1x Optimizing C Compiler User's Guide.

-You can specify command line options in a file. When you specify that file on the command line with the ±@ shell option, the compiler reads the file and interprets it as if it contained part of the command line. For more information, see the Compiler Description chapter.

-The options that invoke the interlist utility with the shell have changed. The ±s option interlists optimizer comments (if the optimizer is invoked) and assembly statements; otherwise it interlists C source and assembly state- ments. The ±ss option interlists C source and assembly statements. A new option, the ±os option, interlists optimizer comments with assembly state- ments. To interlist C source and assembly statements with optimizer comments, use the ±os and ±ss options when invoking the optimizer. For more information, see the Compiler Description and Optimizing Your Code chapters.

-Global register variables are now supported. For more information, see the TMS470R1x C Language chapter.

-Bit-field manipulation improvements are incorporated. For more informa- tion, see the Runtime Environment chapter.

-The alignment of structures has changed. In previous releases, all struc- tures were word aligned. Now, a structure is aligned according to the align- ment of the structure's most restrictive element. For more information, see the Runtime Environment chapter.

-Software interrupts are supported for C code. You define the software interrupt with the SWI_ALIAS pragma. For more information, see the TMS470R1x C Language and Runtime Environment chapters.

Release Notes

6-5

Image 61
Contents Getting Started Guide SPNU117B TMS470R1x Code Generation Tools Getting Started Guide Important Notice Notational Conventions About This ManualSet PATH=c\tooldir%PATH% Related Documentation From Texas InstrumentsSET CDIR=pathname1 pathname2 Trademarks North America, South America, Central America If You Need AssistanceContents Setting Up the Code Generation Tools With SunOS Defines terms and acronyms used in this book Page Setting Up the Code Generation Tools With DOS or Windows Software checklist Hardware checklistSystem Requirements Installing the tools on DOS systems Installing the Code Generation ToolsInstalling the tools on Windows 3.1x systems InstallAdir Cdir Coption TMP Setting Up the Code Generation EnvironmentSet ADIR=pathname1 pathname2 \tooldirTMS470R1x Assembly Language Tools Users Guide Setting default shell options CoptionSet COPTION=±qs ±z Specifying a temporary file directory TMP Resetting defined environment variablesVerifying that the environment variables are set Performance Considerations Where to Go From HereChapter TMS470R1x Code Generation Tools \setup.exe These variables are set up in the registry under \tooldir Set COPTION=option1 option2 Set ADIR= Set variablename=Where to Go From Here Setting Up the Code Generation Tools With SunOS Disk space Mounting the CD-ROM Boot ±rMount ±rt hsfs /dev/sr0 /cdrom exit Cd /cdrom/sunos Mount ±rF hsfs /dev/sr0 /cdrom exit Cd /cdrom/cdrom0/sunosUnmounting the CD-ROM Copying the filesUmount /cdrom eject /dev/sr0 exit Cd ejectSetting Up the Code Generation Environment Set path=/yourpathname /tooldir $path Yourpathname /tooldirSetenv Adir ºpathname1 pathname2 . . .º ADIR=ºpathname1 pathname2 . . .º export AdirCDIR=ªpathname1 pathname2 . . .º export Cdir Setenv Cdir ªpathname1 pathname2 . . .ºSetenv Coption º±qs ±zº Setenv TMP º/tempº Reinitializing your shellTMP=º/tempº export TMP Source ~/.cshrcTo verify that the environment variables are set, enter Setting Up the Code Generation Tools on an HP Workstation An HP 9000 Series 700 PA-RISC computer Cd /cdrom/hp Mount ±rt cdfs /dev/dsk/yourcdromdevice /cdrom exitSetting up the software tools using a Korn shell Setting up the software tools using a C shellPATH=tooldir$PATH Umount /cdrom exitSetting Up the Code Generation Environment Setenv Adir ºpathname1 pathname2 … º Identifying alternate directories for the assembler AdirADIR=ºpathname1 pathname2 … º export Adir Setenv Cdir ªpathname1 pathname2 . . .º Identifying alternate directories for the compiler CdirSpecifying a temporary file directory TMP Unsetenv variable name Where to Go From Here Getting Started With Code Generation Tools Example 5±2. file2.asm Getting Started With the Assembler and LinkerGetting Started With the Code Generation Tools Example 5±4. Output Map File, lnker2.map Example 5±5. Sample Linker Command File, linker2.cmd Entry Point Symbol Memory Configuration Cl470 ±o ±mt funtion Getting Started With the C CompilerCl470 ±o ±k function Cl470 ±s function ±z lnk32.cmd ±o function.out Release Notes Media Contents ±2. Media Contents for PCs General enhancements Release EnhancementsAssembler enhancements Compiler enhancements Page Troubleshooting DOS Systems Troubleshooting in the Protected-Mode Environment PMINFO32.EXE program Error MessagesTable A±1. Pminfo Fields Action Recopy the file from the source media Kernel Error MessagesAction Make more memory available and try again Action Contact technical support Action Reinstall and run the tools on a 386 or later PCAction Rerun the program and/or restart your computer ExecutionMemory is available to non-Windows programs. Under OS/2 Cause this errorIncrease the Dpmimemorylimit in the DOS box set TingsAction Free some memory for the DOS/4G application DOS/4G Error MessagesAction Make sure that the filename was spelled correctly DOS/4G Error Messages Glossary Glossary Glossary B-3 Page Index Index MS-DOS Pminfo Setup.exe For DOS systems For Windows 3.1x systems Windows 95/NT systems Index-6 Important Notice