ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Пятница
3 мая
98092 Топик полностью
LordN, философ (30.08.2007 18:05, просмотров: 335) ответил htsoft на хз, это хорошая проверка кода, а алгоритм меняться не должен и отлаживать там не надо ничего, как раз если что-то вылезает это значит что-то кривовато сделано и тут заметно стало
вопщем потратил сегодня денек на переделки кода, шоб 9.61 смог таки скомпилить проектик. вот что получилось компиляция из под HI-TECH Universal ToolSuite
Build D:ProjPicNTO18
to0402
to0402 for device 18F252
Using driver C:Program FilesHI-TECH SoftwarePICC-18pro9.61inpicc18.exe

Executing: "C:Program FilesHI-TECH SoftwarePICC-18pro9.61inpicc18.exe" -q -g --asmlist --chip=18F252 "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s" -P --char=unsigned -Blarge --double=32 --cp=16 --pass1 D:ProjPicNTO18
to0402Nto0402.c 
Executing: "C:Program FilesHI-TECH SoftwarePICC-18pro9.61inpicc18.exe" -q -g --asmlist --chip=18F252 "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s" -P --char=unsigned -Blarge --double=32 --cp=16 -onto0402.cof -mnto0402.map Nto0402.p1 
Warning [350] C:Program FilesHI-TECH SoftwarePICC-18pro9.61libdoprnt.c; 1505.1 unused member "_str" (from line 528)
Warning [350] C:Program FilesHI-TECH SoftwarePICC-18pro9.61libdoprnt.c; 1505.1 unused member "_len" (from line 526)

Memory Usage Map:

Program space:
    CODE                 used  17C7h (  6087) of  8000h bytes   ( 18.6%)
    CONST                used     0h (     0) of  8000h bytes   (  0.0%)
    SMALLCONST           used     0h (     0) of  7A00h bytes   (  0.0%)
    MEDIUMCONST          used     0h (     0) of  7A00h bytes   (  0.0%)

Data space:
    RAM                  used     0h (     0) of   600h bytes   (  0.0%)
    BIGRAM               used     0h (     0) of   600h bytes   (  0.0%)
    BANK0                used     0h (     0) of   100h bytes   (  0.0%)
    BANK1                used    63h (    99) of   100h bytes   ( 38.7%)
    BANK2                used     0h (     0) of   100h bytes   (  0.0%)
    BANK3                used     0h (     0) of   100h bytes   (  0.0%)
    BANK4                used     0h (     0) of   100h bytes   (  0.0%)
    BANK5                used     0h (     0) of   100h bytes   (  0.0%)
    COMRAM               used     4h (     4) of    80h bytes   (  3.1%)
    NVRAM                used     0h (     0) of   100h bytes   (  0.0%)

EEPROM space:
    EEDATA               used     0h (     0) of   100h bytes   (  0.0%)

ID Location space:
    IDLOC                used     0h (     0) of     8h nibbles (  0.0%)

Configuration bits:
    CONFIG               used     3h (     3) of     7h words   ( 42.9%)

Extra space:
    SMALLCONS            used    29h (    41) of     1h unit    (4100.0%)

Summary:
    Program space        used  17C7h (  6087) of  8000h bytes   ( 18.6%)
    Data space           used    67h (   103) of   600h bytes   (  6.7%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    ID Location space    used     0h (     0) of     8h nibbles (  0.0%)
    Configuration bits   used     3h (     3) of     7h words   ( 42.9%)
                         used    29h (    41) of     1h unit    (4100.0%)

Loaded D:ProjPicNTO18
to0402
to0402.cof.
то же самое, но уже 9,50пл3
Build D:ProjPicNTO18
to0402
to0402 for device 18F252
Using driver C:Program FilesHI-TECH SoftwarePICC-189.50inpicc18.exe

Executing: "C:Program FilesHI-TECH SoftwarePICC-189.50inpicc18.exe" -q -g --asmlist --chip=18F252 "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s" -P --char=unsigned -Blarge --double=32 --cp=16 -C D:ProjPicNTO18
to0402Nto0402.c 
Executing: "C:Program FilesHI-TECH SoftwarePICC-189.50inpicc18.exe" -q -g --asmlist --chip=18F252 "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s" -P --char=unsigned -Blarge --double=32 --cp=16 -onto0402.cof -mnto0402.map Nto0402.obj 

Memory Usage Map:

Program space:
    CODE                 used  191Ch (  6428) of  8000h bytes   ( 19.6%)
    LOWCODE              used     0h (     0) of  8000h bytes   (  0.0%)

Data space:
    RAM                  used    67h (   103) of   600h bytes   (  6.7%)
    BIGRAM               used    20h (    32) of   600h bytes   (  2.1%)
    COMRAM               used    4Ah (    74) of    80h bytes   ( 57.8%)
    NVRAM                used     0h (     0) of   100h bytes   (  0.0%)

EEPROM space:
    EEDATA               used     0h (     0) of   100h bytes   (  0.0%)

External data memory:
                         None available

ID Location space:
    IDLOC                used     0h (     0) of     8h nibbles (  0.0%)

Configuration bits:
    CONFIG               used     3h (     3) of     7h words   ( 42.9%)

Summary:
    Program space        used  191Ch (  6428) of  8000h bytes   ( 19.6%)
    Data space           used    D1h (   209) of   600h bytes   ( 13.6%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    External data memory None available
    ID Location space    used     0h (     0) of     8h nibbles (  0.0%)
    Configuration bits   used     3h (     3) of     7h words   ( 42.9%)

Loaded D:ProjPicNTO18
to0402
to0402.cof.
а теперь тот же 9,50пл3, но уже из под HI-TECH PICC-18 ToolSuite
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:Program FilesHI-TECH SoftwarePICC-189.50inpicc18.exe" -C -E"Nto0402.cce" "Nto0402.c" -O"Nto0402.obj" -Zg9 -O -D32 -FDOUBLE -Q -MPLAB -18F252
Advisory[1207]   : some of the command line options you are using are now obsolete
Advisory[1208]   : use --help option or refer to the user manual for option details
Executing: "C:Program FilesHI-TECH SoftwarePICC-189.50inpicc18.exe" -E"nto0402.lde" "D:ProjPicNTO18
to0402Nto0402.obj" -O"nto0402.cof" -O"nto0402.hex" -D32 -FDOUBLE -Q -MPLAB -18F252

Memory Usage Map:

Program space:
    CODE                 used  1DC8h (  7624) of  8000h bytes   ( 23.3%)
    LOWCODE              used     0h (     0) of  8000h bytes   (  0.0%)

Data space:
    RAM                  used    67h (   103) of   600h bytes   (  6.7%)
    BIGRAM               used    26h (    38) of   600h bytes   (  2.5%)
    COMRAM               used    4Fh (    79) of    80h bytes   ( 61.7%)
    NVRAM                used     0h (     0) of   100h bytes   (  0.0%)

EEPROM space:
    EEDATA               used     0h (     0) of   100h bytes   (  0.0%)

External data memory:
                         None available

ID Location space:
    IDLOC                used     0h (     0) of     8h nibbles (  0.0%)

Configuration bits:
    CONFIG               used     3h (     3) of     7h words   ( 42.9%)

Summary:
    Program space        used  1DC8h (  7624) of  8000h bytes   ( 23.3%)
    Data space           used    DCh (   220) of   600h bytes   ( 14.3%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    External data memory None available
    ID Location space    used     0h (     0) of     8h nibbles (  0.0%)
    Configuration bits   used     3h (     3) of     7h words   ( 42.9%)

Advisory[1207]   : some of the command line options you are using are now obsolete
Advisory[1208]   : use --help option or refer to the user manual for option details
Loaded D:ProjPicNTO18
to0402
to0402.cof.
BUILD SUCCEEDED: Thu Aug 30 20:55:56 2007
а вот это исходный проект скомпилённый под 9,50пл3 из под хи-тех пикс-18 тулз сьюит
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\HI-TECH Software\PICC-18\9.50\bin\picc18.exe" -C -E"Nto0401.cce" "Nto0401.c" -O"Nto0401.obj" -Zg9 -O -D32 -FDOUBLE -Q -MPLAB -18F252
Advisory[1207]   : some of the command line options you are using are now obsolete
Advisory[1208]   : use --help option or refer to the user manual for option details
Executing: "C:\Program Files\HI-TECH Software\PICC-18\9.50\bin\picc18.exe" -E"nto0401.lde" "D:\ProjPic\NTO18\nto0401\Nto0401.obj" -M"nto0401.map" -O"nto0401.cof" -O"nto0401.hex" -D32 -FDOUBLE -Q -MPLAB -18F252

Memory Usage Map:

Program space:
    CODE                 used  1DFCh (  7676) of  8000h bytes   ( 23.4%)
    LOWCODE              used     0h (     0) of  8000h bytes   (  0.0%)

Data space:
    RAM                  used    6Bh (   107) of   600h bytes   (  7.0%)
    BIGRAM               used    26h (    38) of   600h bytes   (  2.5%)
    COMRAM               used    4Fh (    79) of    80h bytes   ( 61.7%)
    NVRAM                used     0h (     0) of   100h bytes   (  0.0%)

EEPROM space:
    EEDATA               used     0h (     0) of   100h bytes   (  0.0%)

External data memory:
                         None available

ID Location space:
    IDLOC                used     0h (     0) of     8h nibbles (  0.0%)

Configuration bits:
    CONFIG               used     3h (     3) of     7h words   ( 42.9%)

Summary:
    Program space        used  1DFCh (  7676) of  8000h bytes   ( 23.4%)
    Data space           used    E0h (   224) of   600h bytes   ( 14.6%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    External data memory None available
    ID Location space    used     0h (     0) of     8h nibbles (  0.0%)
    Configuration bits   used     3h (     3) of     7h words   ( 42.9%)

Advisory[1207]   : some of the command line options you are using are now obsolete
Advisory[1208]   : use --help option or refer to the user manual for option details
Loaded D:\ProjPic\NTO18\nto0401\nto0401.cof.
BUILD SUCCEEDED: Thu Aug 30 21:03:22 2007
как говориться - прочуйствуйте разницу. вопщем и целом мне пока вся эта хрень всё равно не ндравитця. лениво мне ковырять новые опции компиллера, а в универсал тулзсьют те шо мне нужны не задаются или задаются как-то не так а через задницу в том смысле, что явно ведь нету в универсале чего-то похожего на "юзе фаст 32-бит флоатинг поинт либрари" и потому сгенерённый под универсалом код получается вроде меньшего размеру, а вот по скорости я пока его еще не тестил. но думаю что и тестить нечего - нету в ём фаст лабраров.
ЛН