11-10
EPSOn
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
11 OTHEr TOOlS
If
main.c
is modified after the make process above has already completed, the next make is processed as follows:
1. The
make.exe
checks Dependency list A (
target.elf:
...) that appears first in the make file.
2. The dependent files
boot.o
and
main.o
are target files in other dependency lists, so the
make.exe
evaluates these dependency lists first.
3. The
make.exe
evaluates Dependency list B (
boot.o:
...). At this time,
boot.o
exists and it is newer
than
boot.s
, so the following command (for assembling
boot.s
) is not executed.
4. The
make.exe
evaluates Dependency list C (
main.o:
...). In this case, the dependent file
main.c
is
newer than
main.o
, so the following command (for compiling
main.c
) is executed. This updates
main.o
.
5. The make process returns to Dependency list A and the command (linkage) is executed since the dependent
file
main.o
is newer than
target.elf
. The
target.elf
is updated.
If no dependent file is updated from the previous make process, the commands in Dependency lists A to C are
not executed.
Precautions on writing dependency list
•
In a dependency list, do not use the same file twice or more if possible. Otherwise, executing the command
may set the time stamp of the file as a later time depending on the OS environment and the make sequence
may not be processed normally.
Bad example:
vector2.o : vector.c
/cygdrive/c/EPSON/gnu17/sed.exe -f ../comm/place.sed vector.c > vector2.c
/cygdrive/c/EPSON/gnu17/xgcc -B/cygdrive/c/EPSON/gnu17/ -c vector2.c -o vector2.o
This example executes
sed.exe
to convert
vector.c
into
vector2.c
and then compiles
vector2.c
to
generate
vector2.o
. It is better to separate into two dependency lists like below.
Good example:
vector2.o : vector2.c
/cygdrive/c/EPSON/gnu17/xgcc -B/cygdrive/c/EPSON/gnu17/ -c vector2.c -o vector2.o
vector2.c : vector.c
/cygdrive/c/EPSON/gnu17/sed.exe -f ../comm/place.sed vector.c > vector2.c
If modification is difficult, execute the
make.exe
again after the Make clean is executed.
•
The relationship of dependency lists should be within 3 or 4 lists. Do not make a long link path of
dependency lists.
•
A maximum of about 4,000 dependency lists can be described in a make file. If descriptions exceed the limit,
the make process may not be completed normally.
•
Up to 255 alphanumeric characters can be used for a file name. 2-byte code characters are not allowed.
Furthermore, when describing a file in full-path format, the file may not be accessed if the path exceeds 255
characters.
Содержание S5U1C17001C
Страница 6: ......
Страница 17: ...1 General S5U1C17001C Manual 1 General ...
Страница 18: ......
Страница 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Страница 22: ......
Страница 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Страница 30: ......
Страница 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Страница 104: ......
Страница 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Страница 122: ......
Страница 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Страница 366: ......
Страница 385: ...7 Library S5U1C17001C Manual 7 library ...
Страница 386: ......
Страница 404: ...7 18 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 7 liBrary THIS PAGE IS BLANK ...
Страница 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Страница 406: ......
Страница 438: ...8 32 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 8 aSSEMBlEr THIS PAGE IS BLANK ...
Страница 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Страница 440: ......
Страница 448: ...9 8 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 9 linkEr THIS PAGE IS BLANK ...
Страница 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Страница 450: ......
Страница 625: ...10 174 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 10 DEBUggEr THIS PAGE IS BLANK ...
Страница 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Страница 627: ......
Страница 695: ...11 68 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 11 OTHEr TOOlS THIS PAGE IS BLANK ...
Страница 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...