Adapting Makefiles For Program-Wide Optimization - Intel i960 User Manual

Processor compiler
Hide thumbs Also See for i960:
Table of Contents

Advertisement

4
4-8
i960 Processor Compiler User's Guide
Below is an example of a makefile (where
SUBST=
PROF=
MODULES=*:*
OPT=-fdb "-gcdm,subst=$(MODULES)+$(SUBST),iprof=$(PROF)"
FLAGS=-T targ $(OPT)
OBJECTS=fee.o foo.o main.o
prog: $(OBJECTS) force
ic960 -o prog $(FLAGS) $(OBJECTS)
.c.o:
ic960 -c $(FLAGS) $<
$(OBJECTS): makefile
force:
While primitive, this makefile can be used to exercise several significant
capabilities of the program-wide optimization system. Refer to this
example as you read the following sections; the example and discussion
can help you determine the changes that must be made to your own
makefiles (if any) to perform program-wide optimizations.

Adapting Makefiles for Program-wide Optimization

This section discusses the example makefile and how the program-wide
optimization interface is expected to mesh with your current usage of
optimization and debug options.
Specifying the PDB in the Makefile
In an ic960 or gcc960 development environment, you typically specify the
PDB by setting the
I960PDB
any makefile, rather than changing makefiles to specify the PDB to every
tool invocation. The example makefile assumes that the PDB is specified
outside of the makefile in this manner.
is set appropriately):
targ
or
environment variable outside of
G960PDB

Advertisement

Table of Contents
loading

Table of Contents