diff --git a/plc_c_test/CFilesOutput/CCodeData.bin b/plc_c_test/CFilesOutput/CCodeData.bin new file mode 100644 index 0000000..532af2f Binary files /dev/null and b/plc_c_test/CFilesOutput/CCodeData.bin differ diff --git a/plc_c_test/CFilesOutput/CCodeFile.bin b/plc_c_test/CFilesOutput/CCodeFile.bin new file mode 100644 index 0000000..e030ec0 Binary files /dev/null and b/plc_c_test/CFilesOutput/CCodeFile.bin differ diff --git a/plc_c_test/CFilesOutput/test.dis b/plc_c_test/CFilesOutput/test.dis new file mode 100644 index 0000000..109c28a --- /dev/null +++ b/plc_c_test/CFilesOutput/test.dis @@ -0,0 +1,280 @@ + +C:\Users\Alex\AppData\Roaming\Delta Industrial Automation\ISPSoft_New\CFilesOutput\test.out: file format pei-i386 + +Sections: +Idx Name Size VMA LMA File off Algn + 0 .data 00000004 00016000 00016000 00000400 2**2 + CONTENTS, ALLOC, LOAD, DATA + 1 .eh_fram 00000148 00028000 00028000 00000600 2**2 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 2 .bss.del 00000100 00033d00 00033d00 00000900 2**5 + CONTENTS, ALLOC, LOAD, DATA + 3 .text 00000100 ffde0000 ffde0000 00000c00 2**4 + CONTENTS, ALLOC, LOAD, READONLY, CODE + +Disassembly of section .data: + +00016000 <.data>: + 16000: 00 00 add %al,(%eax) + 16002: 30 .byte 0x30 + 16003: 41 inc %ecx + +Disassembly of section .eh_fram: + +00028000 <.eh_frame>: + 28000: 14 00 adc $0x0,%al + 28002: 00 00 add %al,(%eax) + 28004: 00 00 add %al,(%eax) + 28006: 00 00 add %al,(%eax) + 28008: 01 7a 52 add %edi,0x52(%edx) + 2800b: 00 01 add %al,(%ecx) + 2800d: 7c 08 jl 28017 <.eh_frame+0x17> + 2800f: 01 1b add %ebx,(%ebx) + 28011: 0c 04 or $0x4,%al + 28013: 04 88 add $0x88,%al + 28015: 01 00 add %eax,(%eax) + 28017: 00 10 add %dl,(%eax) + 28019: 00 00 add %al,(%eax) + 2801b: 00 1c 00 add %bl,(%eax,%eax,1) + 2801e: 00 00 add %al,(%eax) + 28020: e0 7f loopne 280a1 <.eh_frame+0x75> + 28022: db ff (bad) + 28024: 21 00 and %eax,(%eax) + 28026: 00 00 add %al,(%eax) + 28028: 00 00 add %al,(%eax) + ... + +0002802c <.eh_frame>: + 2802c: 14 00 adc $0x0,%al + 2802e: 00 00 add %al,(%eax) + 28030: 00 00 add %al,(%eax) + 28032: 00 00 add %al,(%eax) + 28034: 01 7a 52 add %edi,0x52(%edx) + 28037: 00 01 add %al,(%ecx) + 28039: 7c 08 jl 28043 <.eh_frame+0x17> + 2803b: 01 1b add %ebx,(%ebx) + 2803d: 0c 04 or $0x4,%al + 2803f: 04 88 add $0x88,%al + 28041: 01 00 add %eax,(%eax) + 28043: 00 10 add %dl,(%eax) + 28045: 00 00 add %al,(%eax) + 28047: 00 1c 00 add %bl,(%eax,%eax,1) + 2804a: 00 00 add %al,(%eax) + 2804c: e4 7f in $0x7f,%al + 2804e: db ff (bad) + 28050: 06 push %es + 28051: 00 00 add %al,(%eax) + 28053: 00 00 add %al,(%eax) + 28055: 00 00 add %al,(%eax) + 28057: 00 10 add %dl,(%eax) + 28059: 00 00 add %al,(%eax) + 2805b: 00 30 add %dh,(%eax) + 2805d: 00 00 add %al,(%eax) + 2805f: 00 e0 add %ah,%al + 28061: 7f db jg 2803e <.eh_frame+0x12> + 28063: ff 06 incl (%esi) + 28065: 00 00 add %al,(%eax) + 28067: 00 00 add %al,(%eax) + 28069: 00 00 add %al,(%eax) + 2806b: 00 10 add %dl,(%eax) + 2806d: 00 00 add %al,(%eax) + 2806f: 00 44 00 00 add %al,0x0(%eax,%eax,1) + 28073: 00 dc add %bl,%ah + 28075: 7f db jg 28052 <.eh_frame+0x26> + 28077: ff 06 incl (%esi) + 28079: 00 00 add %al,(%eax) + 2807b: 00 00 add %al,(%eax) + 2807d: 00 00 add %al,(%eax) + 2807f: 00 10 add %dl,(%eax) + 28081: 00 00 add %al,(%eax) + 28083: 00 58 00 add %bl,0x0(%eax) + 28086: 00 00 add %al,(%eax) + 28088: d8 7f db fdivrs -0x25(%edi) + 2808b: ff 06 incl (%esi) + 2808d: 00 00 add %al,(%eax) + 2808f: 00 00 add %al,(%eax) + 28091: 00 00 add %al,(%eax) + 28093: 00 10 add %dl,(%eax) + 28095: 00 00 add %al,(%eax) + 28097: 00 6c 00 00 add %ch,0x0(%eax,%eax,1) + 2809b: 00 d4 add %dl,%ah + 2809d: 7f db jg 2807a <.eh_frame+0x4e> + 2809f: ff 06 incl (%esi) + 280a1: 00 00 add %al,(%eax) + 280a3: 00 00 add %al,(%eax) + 280a5: 00 00 add %al,(%eax) + 280a7: 00 10 add %dl,(%eax) + 280a9: 00 00 add %al,(%eax) + 280ab: 00 80 00 00 00 d0 add %al,-0x30000000(%eax) + 280b1: 7f db jg 2808e <.eh_frame+0x62> + 280b3: ff 06 incl (%esi) + 280b5: 00 00 add %al,(%eax) + 280b7: 00 00 add %al,(%eax) + 280b9: 00 00 add %al,(%eax) + 280bb: 00 10 add %dl,(%eax) + 280bd: 00 00 add %al,(%eax) + 280bf: 00 94 00 00 00 cc 7f add %dl,0x7fcc0000(%eax,%eax,1) + 280c6: db ff (bad) + 280c8: 06 push %es + 280c9: 00 00 add %al,(%eax) + 280cb: 00 00 add %al,(%eax) + 280cd: 00 00 add %al,(%eax) + 280cf: 00 10 add %dl,(%eax) + 280d1: 00 00 add %al,(%eax) + 280d3: 00 a8 00 00 00 c8 add %ch,-0x38000000(%eax) + 280d9: 7f db jg 280b6 <.eh_frame+0x8a> + 280db: ff 06 incl (%esi) + 280dd: 00 00 add %al,(%eax) + 280df: 00 00 add %al,(%eax) + 280e1: 00 00 add %al,(%eax) + 280e3: 00 10 add %dl,(%eax) + 280e5: 00 00 add %al,(%eax) + 280e7: 00 bc 00 00 00 c4 7f add %bh,0x7fc40000(%eax,%eax,1) + 280ee: db ff (bad) + 280f0: 06 push %es + 280f1: 00 00 add %al,(%eax) + 280f3: 00 00 add %al,(%eax) + 280f5: 00 00 add %al,(%eax) + 280f7: 00 10 add %dl,(%eax) + 280f9: 00 00 add %al,(%eax) + 280fb: 00 d0 add %dl,%al + 280fd: 00 00 add %al,(%eax) + 280ff: 00 c0 add %al,%al + 28101: 7f db jg 280de <.eh_frame+0xb2> + 28103: ff 06 incl (%esi) + 28105: 00 00 add %al,(%eax) + 28107: 00 00 add %al,(%eax) + 28109: 00 00 add %al,(%eax) + 2810b: 00 10 add %dl,(%eax) + 2810d: 00 00 add %al,(%eax) + 2810f: 00 e4 add %ah,%ah + 28111: 00 00 add %al,(%eax) + 28113: 00 bc 7f db ff 06 00 add %bh,0x6ffdb(%edi,%edi,2) + 2811a: 00 00 add %al,(%eax) + 2811c: 00 00 add %al,(%eax) + 2811e: 00 00 add %al,(%eax) + 28120: 10 00 adc %al,(%eax) + 28122: 00 00 add %al,(%eax) + 28124: f8 clc + 28125: 00 00 add %al,(%eax) + 28127: 00 b8 7f db ff 06 add %bh,0x6ffdb7f(%eax) + 2812d: 00 00 add %al,(%eax) + 2812f: 00 00 add %al,(%eax) + 28131: 00 00 add %al,(%eax) + 28133: 00 10 add %dl,(%eax) + 28135: 00 00 add %al,(%eax) + 28137: 00 0c 01 add %cl,(%ecx,%eax,1) + 2813a: 00 00 add %al,(%eax) + 2813c: b4 7f mov $0x7f,%ah + 2813e: db ff (bad) + 28140: 06 push %es + 28141: 00 00 add %al,(%eax) + 28143: 00 00 add %al,(%eax) + 28145: 00 00 add %al,(%eax) + ... + +Disassembly of section .bss.del: + +00033d00 <_delta_built_in_func>: + ... + +Disassembly of section .text: + +ffde0000 <_FUN_TRAN_r9AnDo9m_p0_0>: +ffde0000: d9 05 00 00 06 00 flds 0x60000 +ffde0006: b8 0a 00 00 00 mov $0xa,%eax +ffde000b: d9 05 00 60 01 00 flds 0x16000 +ffde0011: 83 e8 01 sub $0x1,%eax +ffde0014: dc c1 fadd %st,%st(1) +ffde0016: 75 f9 jne ffde0011 <_FUN_TRAN_r9AnDo9m_p0_0+0x11> +ffde0018: dd d8 fstp %st(0) +ffde001a: d9 1d 00 00 06 00 fstps 0x60000 +ffde0020: c3 ret +ffde0021: 90 nop +ffde0022: 90 nop +ffde0023: 90 nop +ffde0024: 90 nop +ffde0025: 90 nop +ffde0026: 90 nop +ffde0027: 90 nop +ffde0028: 90 nop +ffde0029: 90 nop +ffde002a: 90 nop +ffde002b: 90 nop +ffde002c: 90 nop +ffde002d: 90 nop +ffde002e: 90 nop +ffde002f: 90 nop + +ffde0030 <_DELTA_SINF>: +ffde0030: ff 25 00 3d 03 00 jmp *0x33d00 +ffde0036: 8d 76 00 lea 0x0(%esi),%esi +ffde0039: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde0040 <_DELTA_COSF>: +ffde0040: ff 25 04 3d 03 00 jmp *0x33d04 +ffde0046: 8d 76 00 lea 0x0(%esi),%esi +ffde0049: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde0050 <_DELTA_TANF>: +ffde0050: ff 25 08 3d 03 00 jmp *0x33d08 +ffde0056: 8d 76 00 lea 0x0(%esi),%esi +ffde0059: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde0060 <_DELTA_ASINF>: +ffde0060: ff 25 0c 3d 03 00 jmp *0x33d0c +ffde0066: 8d 76 00 lea 0x0(%esi),%esi +ffde0069: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde0070 <_DELTA_ACOSF>: +ffde0070: ff 25 10 3d 03 00 jmp *0x33d10 +ffde0076: 8d 76 00 lea 0x0(%esi),%esi +ffde0079: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde0080 <_DELTA_ATANF>: +ffde0080: ff 25 14 3d 03 00 jmp *0x33d14 +ffde0086: 8d 76 00 lea 0x0(%esi),%esi +ffde0089: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde0090 <_DELTA_SINHF>: +ffde0090: ff 25 18 3d 03 00 jmp *0x33d18 +ffde0096: 8d 76 00 lea 0x0(%esi),%esi +ffde0099: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde00a0 <_DELTA_COSHF>: +ffde00a0: ff 25 1c 3d 03 00 jmp *0x33d1c +ffde00a6: 8d 76 00 lea 0x0(%esi),%esi +ffde00a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde00b0 <_DELTA_TANHF>: +ffde00b0: ff 25 20 3d 03 00 jmp *0x33d20 +ffde00b6: 8d 76 00 lea 0x0(%esi),%esi +ffde00b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde00c0 <_DELTA_SQRF>: +ffde00c0: ff 25 24 3d 03 00 jmp *0x33d24 +ffde00c6: 8d 76 00 lea 0x0(%esi),%esi +ffde00c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde00d0 <_DELTA_LOGF>: +ffde00d0: ff 25 28 3d 03 00 jmp *0x33d28 +ffde00d6: 8d 76 00 lea 0x0(%esi),%esi +ffde00d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde00e0 <_DELTA_LNF>: +ffde00e0: ff 25 2c 3d 03 00 jmp *0x33d2c +ffde00e6: 8d 76 00 lea 0x0(%esi),%esi +ffde00e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi + +ffde00f0 <_DELTA_POWF>: +ffde00f0: ff 25 30 3d 03 00 jmp *0x33d30 +ffde00f6: 90 nop +ffde00f7: 90 nop +ffde00f8: 90 nop +ffde00f9: 90 nop +ffde00fa: 90 nop +ffde00fb: 90 nop +ffde00fc: 90 nop +ffde00fd: 90 nop +ffde00fe: 90 nop +ffde00ff: 90 nop diff --git a/plc_c_test/CFilesOutput/test.map b/plc_c_test/CFilesOutput/test.map new file mode 100644 index 0000000..e453341 --- /dev/null +++ b/plc_c_test/CFilesOutput/test.map @@ -0,0 +1,100 @@ + +Discarded input sections + + .rdata$zzz 0x00000000 0x24 C:\Users\Alex\AppData\Local\Temp\ccytXxtq.o + .rdata$zzz 0x00000000 0x24 C:\Users\Alex\AppData\Local\Temp\ccTkpI6K.o + .rdata$zzz 0x00000000 0x24 C:\Users\Alex\AppData\Local\Temp\ccy26hUb.o + +Memory Configuration + +Name Origin Length Attributes +rom 0xffde0000 0x00010000 +ram 0x00016000 0x00002000 +delta_built_in_func 0x00033d00 0x00000100 +drectve_ram 0x00018000 0x00010000 +eh_frame_ram 0x00028000 0x00010000 +*default* 0x00000000 0xffffffff + +Linker script and memory map + + 0x00400000 __image_base__ = 0x400000 + 0x00000000 __dll__ = 0x0 + 0x00400000 ___ImageBase = 0x400000 + 0x00001000 __section_alignment__ = 0x1000 + 0x00000200 __file_alignment__ = 0x200 + 0x00000004 __major_os_version__ = 0x4 + 0x00000000 __minor_os_version__ = 0x0 + 0x00000001 __major_image_version__ = 0x1 + 0x00000000 __minor_image_version__ = 0x0 + 0x00000004 __major_subsystem_version__ = 0x4 + 0x00000000 __minor_subsystem_version__ = 0x0 + 0x00000003 __subsystem__ = 0x3 + 0x00200000 __size_of_stack_reserve__ = 0x200000 + 0x00001000 __size_of_stack_commit__ = 0x1000 + 0x00100000 __size_of_heap_reserve__ = 0x100000 + 0x00001000 __size_of_heap_commit__ = 0x1000 + 0x00000000 __loader_flags__ = 0x0 + 0x00000000 __dll_characteristics__ = 0x0 +LOAD C:\Users\Alex\AppData\Local\Temp\ccytXxtq.o +LOAD C:\Users\Alex\AppData\Local\Temp\ccTkpI6K.o +LOAD C:\Users\Alex\AppData\Local\Temp\ccy26hUb.o + +.text 0xffde0000 0x200 + *(.entry) + *(.text.header) + *(.text*) + .text 0xffde0000 0x0 C:\Users\Alex\AppData\Local\Temp\ccytXxtq.o + .text 0xffde0000 0x30 C:\Users\Alex\AppData\Local\Temp\ccTkpI6K.o + 0xffde0000 FUN_TRAN_r9AnDo9m_p0_0 + .text 0xffde0030 0xd0 C:\Users\Alex\AppData\Local\Temp\ccy26hUb.o + 0xffde0030 DELTA_SINF + 0xffde0040 DELTA_COSF + 0xffde0050 DELTA_TANF + 0xffde0060 DELTA_ASINF + 0xffde0070 DELTA_ACOSF + 0xffde0080 DELTA_ATANF + 0xffde0090 DELTA_SINHF + 0xffde00a0 DELTA_COSHF + 0xffde00b0 DELTA_TANHF + 0xffde00c0 DELTA_SQRF + 0xffde00d0 DELTA_LOGF + 0xffde00e0 DELTA_LNF + 0xffde00f0 DELTA_POWF + 0xffde0100 . = ALIGN (0x4) + +.bss.delta_built_in_func + 0x00033d00 0x200 + *(.bss.delta_built_in_func) + .bss.delta_built_in_func + 0x00033d00 0x100 C:\Users\Alex\AppData\Local\Temp\ccy26hUb.o + 0x00033d00 delta_built_in_func + +/DISCARD/ + *(.rdata$zzz) + +.data 0x00016000 0x200 + *(.data*) + .data 0x00016000 0x0 C:\Users\Alex\AppData\Local\Temp\ccytXxtq.o + .data 0x00016000 0x0 C:\Users\Alex\AppData\Local\Temp\ccTkpI6K.o + .data 0x00016000 0x0 C:\Users\Alex\AppData\Local\Temp\ccy26hUb.o + *(.rdata*) + .rdata 0x00016000 0x4 C:\Users\Alex\AppData\Local\Temp\ccTkpI6K.o + *(.rodata*) + *(.bss*) + .bss 0x00016004 0x0 C:\Users\Alex\AppData\Local\Temp\ccytXxtq.o + .bss 0x00016004 0x0 C:\Users\Alex\AppData\Local\Temp\ccTkpI6K.o + .bss 0x00016004 0x0 C:\Users\Alex\AppData\Local\Temp\ccy26hUb.o + *(COMMON) + +.eh_frame 0x00028000 0x200 + *(.eh_frame*) + .eh_frame 0x00028000 0x2c C:\Users\Alex\AppData\Local\Temp\ccTkpI6K.o + .eh_frame 0x0002802c 0x11c C:\Users\Alex\AppData\Local\Temp\ccy26hUb.o + 0x00028148 . = ALIGN (0x4) + +.drectve 0x00018000 0x0 + *(.drectve*) + 0x00018000 . = ALIGN (0x4) + 0x00018000 _end = . + 0x00018000 end = . +OUTPUT(C:\Users\Alex\AppData\Roaming\Delta Industrial Automation\ISPSoft_New\CFilesOutput\test.out pei-i386) diff --git a/plc_c_test/CFilesOutput/test.out b/plc_c_test/CFilesOutput/test.out new file mode 100644 index 0000000..03c7198 Binary files /dev/null and b/plc_c_test/CFilesOutput/test.out differ diff --git a/plc_c_test/plc_c_test.SRbitExistedInProg b/plc_c_test/plc_c_test.SRbitExistedInProg new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/plc_c_test/plc_c_test.SRbitExistedInProg @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/plc_c_test/plc_c_test.bak b/plc_c_test/plc_c_test.bak index a6c32ba..d846a98 100644 Binary files a/plc_c_test/plc_c_test.bak and b/plc_c_test/plc_c_test.bak differ diff --git a/plc_c_test/plc_c_test.eiptag b/plc_c_test/plc_c_test.eiptag deleted file mode 100644 index 65d60ef..0000000 Binary files a/plc_c_test/plc_c_test.eiptag and /dev/null differ diff --git a/plc_c_test/plc_c_test.ini b/plc_c_test/plc_c_test.ini index ac4a167..0af8ef2 100644 --- a/plc_c_test/plc_c_test.ini +++ b/plc_c_test/plc_c_test.ini @@ -34,19 +34,26 @@ MC_CONNECT_SLOT=0 [MDI_NAME_GROUP] MDICOUNT=5 -MDINAME_0=fb_ccc_PouType -MDINAME_1=GlobalVar -MDINAME_2=CGlobalVar -MDINAME_3=GlobalHWConfigVar -MDINAME_4=main_PouType +MDINAME_0=main_PouType +MDINAME_1=fb_ccc_PouType +MDINAME_2=GlobalVar +MDINAME_3=CGlobalVar +MDINAME_4=GlobalHWConfigVar -[fb_ccc_PouType] +[main_PouType] WindowState=2 Top=-31 Left=-8 Height=473 Width=898 +[fb_ccc_PouType] +WindowState=0 +Top=104 +Left=104 +Height=300 +Width=748 + [GlobalVar] WindowState=0 Top=78 @@ -68,10 +75,3 @@ Left=104 Height=304 Width=752 -[main_PouType] -WindowState=0 -Top=26 -Left=26 -Height=304 -Width=752 - diff --git a/plc_c_test/plc_c_test.isp b/plc_c_test/plc_c_test.isp index a6c32ba..d846a98 100644 Binary files a/plc_c_test/plc_c_test.isp and b/plc_c_test/plc_c_test.isp differ diff --git a/plc_c_test/plc_c_test.pnt b/plc_c_test/plc_c_test.pnt index 6d9c1fb..c35f781 100644 Binary files a/plc_c_test/plc_c_test.pnt and b/plc_c_test/plc_c_test.pnt differ diff --git a/plc_c_test/plc_c_test.~isp b/plc_c_test/plc_c_test.~isp new file mode 100644 index 0000000..e619a4c Binary files /dev/null and b/plc_c_test/plc_c_test.~isp differ