{"id":306255,"date":"2020-07-01T21:00:10","date_gmt":"2020-07-01T21:00:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=306255"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=306255","title":{"rendered":"\u041f\u0438\u0448\u0435\u043c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043f\u043e\u0434 Nvidia Kepler (\u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438 CUDA, \u0432\u0435\u0440\u0441\u0438\u044f \u044f\u0437\u044b\u043a\u0430 sm_30) \u0434\u043b\u044f Ghidra"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/509156\/\">\u0414\u043b\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439 \u0434\u043b\u044f Ghidra, \u043e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442. \u041e\u043d\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0432\u0435\u0434\u044c \u0442\u0430\u043c \u0441\u0432\u043e\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430: \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u044b, \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0435\u0449\u0438, \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u0448\u0435\u0439\u0434\u0435\u0440\u043e\u0432. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430, \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u044b\u0439, \u0438 \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u0432\u0451\u0440\u0441\u0438\u0442\u044c.<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0430 \u0434\u0432\u0443\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u0447\u0442\u043e \u043a \u0447\u0435\u043c\u0443.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u2014 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 axpy (\u0430\u043d\u0430\u043b\u043e\u0433 hello world \u0434\u043b\u044f GPGPU). \u0412\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u0438 \u043f\u0440\u044b\u0436\u043a\u043e\u0432 \u043d\u0430 GPU, \u0442.\u043a. \u0442\u0430\u043c \u0432\u0441\u0451 \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443.<\/p>\n<p>  \u0412\u043e \u0432\u0441\u0435\u0445 Nvidia \u044f\u0437\u044b\u043a\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 little endian, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0431\u0430\u0439\u0442\u044b \u0438\u0437 hex-\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u0432 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0431\u043b\u043e\u043a\u043d\u043e\u0442 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Notepad++) \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u043e 8 \u0448\u0442\u0443\u043a (\u0434\u043b\u0438\u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u0430). \u0417\u0430\u0442\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435\u0440\u0441\u043a\u0438\u0439 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 (\u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0442\u043e\u0442, \u0447\u0442\u043e \u043e\u0442 Microsoft) \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u0434. \u0414\u0430\u043b\u0435\u0435 \u0438\u0449\u0435\u043c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0441\u043a\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u0437\u0430\u0442\u0435\u043c \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432. \u0414\u043b\u044f \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u043e\u0438\u0441\u043a\u0430 \u043c\u0430\u0441\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 hex \u0438 \u0434\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 cuobjdump, \u0438\u043d\u043e\u0433\u0434\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440, \u043a\u0430\u043a \u0432 AMDGPU(\u0442.\u043a. \u0442\u0430\u043c \u0434\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d, \u043d\u043e \u044d\u0442\u043e \u0442\u0435\u043c\u0430 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438). \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u044d\u0442\u043e \u0442\u0430\u043a: \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0438\u0442\u044b \u0432 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0435, \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u043e\u0432\u043e\u0435 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0431\u0430\u0439\u0442\u043e\u0432, \u0438\u0445 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a, \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 nvcc \u043b\u0438\u0431\u043e \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440, \u0435\u0441\u043b\u0438 \u043e\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0447\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430. \u0417\u0430\u0442\u0435\u043c \u0447\u0435\u0440\u0435\u0437 cuobjdump \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c.<\/p>\n<p>  \u0412\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043d\u0430 C, \u0431\u0435\u0437 \u043f\u043b\u044e\u0441\u043e\u0432 \u0438 \u041e\u041e\u041f \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0442\u0435\u0441\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u043c GPU \u043a\u043e\u0434\u043e\u043c), \u0437\u0430\u0442\u0435\u043c \u0434\u0438\u0437\u0430\u0441\u043c + \u0441\u0440\u0430\u0437\u0443 \u0431\u0430\u0439\u0442\u044b, \u0438\u0431\u043e \u0442\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u0438\u0445 \u043a\u0430\u043a \u0440\u0430\u0437 \u043d\u0435 \u043d\u0430\u0434\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438.<\/p>\n<p>  \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 axpy.cu \u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c \u0447\u0435\u0440\u0435\u0437 cmd: nvcc axpy.cu &#8212;cubin &#8212;gpu-architecture sm_30<br \/>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 ELF-\u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c axpy.cubin \u0434\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0438\u0440\u0443\u0435\u043c \u0442\u0430\u043c \u0436\u0435: cuobjdump axpy.cubin -sass<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 1:<\/p>\n<pre><code class=\"plaintext\">__global__ void axpy(float param_1, float* param_2, float* param_3) { unsigned int uVar1 = threadIdx.x; param_2[uVar1] = param_1 * param_3[uVar1]; }<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0414\u0430\u043c\u043f<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">\/*0000*\/ \/* 0x22c04282c2804307 *\/ \/*0008*\/ MOV R1, c[0x0][0x44]; \/* 0x2800400110005de4 *\/ \/*0010*\/ S2R R0, SR_TID.X; \/* 0x2c00000084001c04 *\/ \/*0018*\/ MOV32I R5, 0x4; \/* 0x1800000010015de2 *\/ \/*0020*\/ ISCADD R2.CC, R0, c[0x0][0x150], 0x2; \/* 0x4001400540009c43 *\/ \/*0030*\/ LD.E R2, [R2]; \/* 0x8400000000209c85 *\/ \/*0038*\/ ISCADD R4.CC, R0, c[0x0][0x148], 0x2; \/* 0x4001400520011c43 *\/ \/*0040*\/ \/* 0x20000002e04283f7 *\/ \/*0048*\/ IMAD.U32.U32.HI.X R5, R0, R5, c[0x0][0x14c]; \/* 0x208a800530015c43 *\/ \/*0050*\/ FMUL R0, R2, c[0x0][0x140]; \/* 0x5800400500201c00 *\/ \/*0058*\/ ST.E [R4], R0; \/* 0x9400000000401c85 *\/ \/*0060*\/ EXIT; \/* 0x8000000000001de7 *\/ \/*0068*\/ BRA 0x68; \/* 0x4003ffffe0001de7 *\/ \/*0070*\/ NOP; \/* 0x4000000000001de4 *\/ \/*0078*\/ NOP; \/* 0x4000000000001de4 *\/<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">void axpy(float param_1,float *param_2,float *param_3) {   uint uVar1;      uVar1 = *&threadIdx.x;   param_2[uVar1] = param_3[uVar1] * param_1;   return; }<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 2:<\/p>\n<pre><code class=\"plaintext\">__global__ void predicates(float* param_1, float* param_2) {     unsigned int uVar1 = threadIdx.x + blockIdx.x * blockDim.x;     if ((uVar1 &gt; 5) & (uVar1 &lt; 10)) param_1[uVar1] = uVar1;     else param_2[uVar1] = uVar1; }<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0414\u0430\u043c\u043f<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">\/*0000*\/ \/* 0x2272028042823307 *\/ \/*0008*\/ MOV R1, c[0x0][0x44]; \/* 0x2800400110005de4 *\/ \/*0010*\/ S2R R0, SR_TID.X; \/* 0x2c00000084001c04 *\/ \/*0018*\/ S2R R3, SR_CTAID.X; \/* 0x2c0000009400dc04 *\/ \/*0020*\/ IMAD R0, R3, c[0x0][0x28], R0; \/* 0x20004000a0301ca3 *\/ \/*0028*\/ MOV32I R3, 0x4; \/* 0x180000001000dde2 *\/ \/*0030*\/ IADD32I R2, R0, -0x6; \/* 0x0bffffffe8009c02 *\/ \/*0038*\/ I2F.F32.U32 R4, R0; \/* 0x1800000001211c04 *\/ \/*0040*\/ \/* 0x22c042e04282c2c7 *\/ \/*0048*\/ ISETP.GE.U32.AND P0, PT, R2, 0x4, PT; \/* 0x1b0ec0001021dc03 *\/ \/*0050*\/ @P0 ISCADD R2.CC, R0, c[0x0][0x148], 0x2; \/* 0x4001400520008043 *\/ \/*0058*\/ @P0 IMAD.U32.U32.HI.X R3, R0, R3, c[0x0][0x14c]; \/* 0x208680053000c043 *\/ \/*0060*\/ @P0 ST.E [R2], R4; \/* 0x9400000000210085 *\/ \/*0068*\/ @P0 EXIT; \/* 0x80000000000001e7 *\/ \/*0070*\/ ISCADD R2.CC, R0, c[0x0][0x140], 0x2; \/* 0x4001400500009c43 *\/ \/*0078*\/ MOV32I R3, 0x4; \/* 0x180000001000dde2 *\/ \/*0080*\/ \/* 0x2000000002e04287 *\/ \/*0088*\/ IMAD.U32.U32.HI.X R3, R0, R3, c[0x0][0x144]; \/* 0x208680051000dc43 *\/ \/*0090*\/ ST.E [R2], R4; \/* 0x9400000000211c85 *\/ \/*0098*\/ EXIT; \/* 0x8000000000001de7 *\/ \/*00a0*\/ BRA 0xa0; \/* 0x4003ffffe0001de7 *\/ \/*00a8*\/ NOP; \/* 0x4000000000001de4 *\/ \/*00b0*\/ NOP; \/* 0x4000000000001de4 *\/ \/*00b8*\/ NOP; \/* 0x4000000000001de4 *\/<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">void predicates(float *param_1,float *param_2) {   uint uVar1;      uVar1 = *&blockIdx.x * (int)_DAT_constants_00000028 + *&threadIdx.x;   if (uVar1 - 6 &lt; 4) {     param_1[uVar1] = (float)uVar1;     return;   }   param_2[uVar1] = (float)uVar1;   return; }<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u041d\u0435\u0442\u0440\u0443\u0434\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u044b \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u043e\u0447\u0435\u043d\u044b \u043f\u043e\u0434 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0443 \u043d\u0435\u0447\u0435\u0433\u043e \u0431\u044b\u043b\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0414\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043e\u0442\u043c\u0435\u043d\u044f\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438. \u0412 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u044d\u0442\u043e \u0432\u043e\u0432\u0441\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0434\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u0441\u044f \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0443 \u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0443.<\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0442\u0430\u043a\u043e\u0435 \u2014 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430 \u0431\u0435\u0440\u0451\u043c \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 (\u0441 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0439) \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 (\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0449\u0438\u0439 \u043e\u0448\u0438\u0431\u043a\u0438) \u043f\u0440\u0438\u043c\u0435\u0440. \u0414\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f\u043c\u0438 (\u043b\u0438\u0431\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a-\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433 \u043f\u043e\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c). \u041d\u043e \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0445\u043e\u0442\u044f \u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043e\u0434, \u0434\u0435\u043b\u0430\u044e\u0449\u0438\u0439 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u00abSoftware modelling\u00bb. \u0421\u0430\u043c \u00abSoftware modelling\u00bb \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433, \u043f\u0435\u0440\u0435\u0432\u043e\u0434 C \u0432 C++, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0438 \u0443\u0436 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u043a\u0438\u0445 \u0432\u0435\u0449\u0435\u0439 \u043a\u0430\u043a \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0449\u0435\u043c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0434\u043b\u044f \u043c\u043d\u0435\u043c\u043e\u043d\u0438\u043a\u0438, \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432 \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0431\u0438\u0442\u044b (\u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438) \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438 (\u0438\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u0435\u0441\u043b\u0438 \u0438\u0445 \u0442\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c). \u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0432 \u0441\u0432\u043e\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445 \u043d\u0430 stackoverflow \u043f\u043e \u0442\u0438\u043f\u0443 \u00ab\u043f\u043e\u043c\u043e\u0433\u0438\u0442\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439\/sass\/\u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434\u00bb, \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u044b (\u0432 \u0442.\u0447. \u043d\u0430 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435) \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b. \u0422\u0430\u043a, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043d\u043e\u043c\u0435\u0440 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0431\u0438\u0442\u0430\u0445 58-63, \u043d\u043e \u0435\u0441\u0442\u044c \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0438\u0442\u044b 0-4 (\u043e\u043d\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u00abI2F\u00bb, \u00abISETP\u00bb, \u00abMOV32I\u00bb), \u0433\u0434\u0435-\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0438\u0445 0-2 (\u0434\u043b\u044f \u043f\u0440\u0435\u043d\u0435\u0431\u0440\u0435\u0436\u0435\u043d\u0438\u044f 3-4 \u0431\u0438\u0442\u0430\u043c\u0438 \u0432 \u043f\u0443\u0441\u0442\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445, \u0432 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u043d\u0438 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u044b \u043a\u0430\u043a \u00abUNK\u00bb). <\/p>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 \u0438 \u0447\u0438\u0441\u0435\u043b-\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u0434\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043e\u043c \u0434\u0430\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0431\u0438\u0442\u044b, \u0432\u043b\u0438\u044f\u044e\u0449\u0438\u0435 \u043d\u0430 \u0432\u044b\u0432\u043e\u0434 \u0434\u0430\u043c\u043f\u0430 \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u0432\u044b\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c. \u0412\u0441\u0435 \u043f\u043e\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438, \u0435\u0441\u0442\u044c \u0432 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 Github, \u0444\u0430\u0439\u043b CUDA.slaspec, \u0440\u0430\u0437\u0434\u0435\u043b token.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432, \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u043e\u043d\u0438 \u0435\u0441\u0442\u044c \u043d\u0430 Github. \u042d\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u0442.\u043a. \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0443\u0440\u043e\u0432\u043d\u0435 Sleigh \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u043a\u0430\u043a \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0441 \u0442\u0438\u043f\u043e\u043c \u00abregister_space\u00bb, \u043d\u043e \u0442.\u043a. \u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u043d\u0435 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043e \u043a\u0430\u043a \u00abinferable\u00bb (\u0438 \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043e\u043d\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c), \u0442\u043e \u043e\u043d\u0438 \u0432 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u043b\u0438\u0431\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 (\u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0438\u043a\u0441\u043e\u043c \u00abVar\u00bb, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b\u043b \u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u00ablocal\u00bb), \u043b\u0438\u0431\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 (\u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u00abparam_\u00bb). SP \u0442\u0430\u043a \u0438 \u043d\u0435 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u043b\u0441\u044f, \u043d\u0443\u0436\u0435\u043d \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430. PC (\u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 IP \u0438\u0437 x86) \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0438\u0434\u0443\u0442 \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b, \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0444\u043b\u0430\u0433\u043e\u0432, \u043d\u043e \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 \u00abgeneral purpose\u00bb, \u0447\u0435\u043c \u0434\u043b\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u0434\u0438\u043a\u0442\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0446\u0435\u043b\u0438, \u0432\u0440\u043e\u0434\u0435 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, (\u043d\u0435)\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430 \u043d\u0443\u043b\u044e \u0438 \u0442.\u043f.<br \/>  \u0417\u0430\u0442\u0435\u043c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u044f\u0437\u043a\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 ISCADD .CC \u0438 IMAD.HI, \u0442.\u043a. \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u0432 \u043c\u043e\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u0437\u0430 \u0441\u0435\u0431\u044f \u0438 \u0437\u0430 \u0432\u0442\u043e\u0440\u0443\u044e, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0447\u0430\u0441\u0442\u0438 \u0441\u0443\u043c\u043c\u044b \u0432 \u0441\u0442\u0430\u0440\u0448\u0438\u0435 4 \u0431\u0430\u0439\u0442\u0430, \u0442.\u043a. \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u0440\u0442\u0438\u0442 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e. \u041d\u043e \u0442\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 IMAD.HI. \u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435, \u0442.\u0435. \u0440\u0430\u0437\u043d\u043e\u0447\u0442\u0435\u043d\u0438\u0435 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 SPU \u0434\u043b\u044f \u0442\u043e\u0439 \u0436\u0435 Ghidra.<\/p>\n<p>  \u041f\u043e\u0442\u043e\u043c \u0438\u0434\u0443\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0447\u0435\u0440\u0435\u0437 cpool. \u0412 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0438\u0445 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e \u043d\u0438\u0431\u0443\u0434\u044c \u00abinferable\u00bb \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430. \u042d\u0442\u043e \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 threadIdx, blockIdx.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a \u043f\u043e\u043b\u044f\u043c dest, par0, par1, par2, res. \u0417\u0430\u0442\u0435\u043c \u0438\u0434\u0443\u0442 \u043f\u043e\u0434\u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0430 \u043f\u043e\u0441\u043b\u0435 \u043d\u0438\u0445 \u2014 \u0442\u043e, \u0440\u0430\u0434\u0438 \u0447\u0435\u0433\u043e \u0432\u0441\u0451 \u0438 \u0437\u0430\u0442\u0435\u0432\u0430\u043b\u043e\u0441\u044c \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 (\u043a\u043e\u0440\u043d\u0435\u0432\u044b\u0435) \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0433\u043b\u0430\u0432\u043d\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438.<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u0443 \u00ab\u043c\u043d\u0435\u043c\u043e\u043d\u0438\u043a\u0430-\u043e\u043f\u0435\u0440\u0430\u043d\u0434\u044b\u00bb, \u043e\u0434\u043d\u0430\u043a\u043e \u0434\u0430\u0451\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0430\u0431\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u044b \u043a \u043c\u043d\u0435\u043c\u043e\u043d\u0438\u043a\u0435 \u043b\u0438\u0431\u043e \u043a \u0441\u0435\u043a\u0446\u0438\u0438 \u0441 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430\u043c\u0438. \u041d\u0438\u043a\u0430\u043a\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b, \u0434\u0430\u0436\u0435 \u0442\u043e\u0442 \u0436\u0435 Hexagon DSP asm \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a \u044d\u0442\u043e\u043c\u0443 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0443, \u0447\u0442\u043e \u0432\u043f\u0440\u043e\u0447\u0435\u043c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e.<\/p>\n<p>  \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u044d\u0442\u0430\u043f\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043c\u0438\u043a\u0440\u043e\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Pcode. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u044d\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 ISCADD .CC \u0438 IMAD.HI, \u0433\u0434\u0435 \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u0431\u0435\u0440\u0451\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u0438 \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u043a\u0430\u043a \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 8 \u0431\u0430\u0439\u0442\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u043e 4. \u042d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u0438\u0441\u043f\u043e\u0441\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043a \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0443 \u0438 \u0435\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Nvidia \u043f\u0440\u043e \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0447\u0430\u0441\u0442\u0438 \u0441\u0443\u043c\u043c\u044b.<\/p>\n<p>  \u0414\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u043d\u0430\u0434\u043f\u0438\u0441\u0438 \u00abSimplify predication\u00bb. \u0421\u043c\u044b\u0441\u043b \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u044b \u2014 \u044d\u0442\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u043f\u043e \u0441\u0443\u0442\u0438 \u043d\u0438 \u0447\u0442\u043e \u0438\u043d\u043e\u0435 \u043a\u0430\u043a \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0435 \u00abSIMD\u00bb, \u043b\u0438\u0431\u043e \u0435\u0433\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0430\u043d\u0430\u043b\u043e\u0433. \u0422.\u0435. \u0435\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u043e\u0432\u044b\u0439 \u0431\u0438\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f, \u043f\u0440\u0438\u0442\u043e\u043c \u043f\u043e\u0434\u0440\u044f\u0434.<\/p>\n<p>  \u041d\u0443\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0443 \u0441\u0440\u0430\u0437\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f (\u043c\u043d\u0435\u043c\u043e\u043d\u0438\u043a\u0430-\u043e\u043f\u0435\u0440\u0430\u043d\u0434\u044b), \u0432\u0435\u0434\u044c \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440, \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b.<br \/>  \u041d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043d\u0430 Pcode \u2014 \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u0430\u044f, \u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u0434\u0435\u043a\u043e\u0434\u0435\u0440\u0430 \u0431\u0430\u0439\u0442\u043e\u0432. \u0411\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0438\u0437 x86 (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e), \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u043c\u0443 \u044f\u0437\u044b\u043a\u0443, \u0435\u0434\u0438\u043d\u043e\u043c\u0443 \u043c\u0438\u0434\u043b\u044d\u043d\u0434\u0443 (\u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440), 2 \u0431\u044d\u043a\u044d\u043d\u0434\u0430\u043c (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c C; \u043a\u0430\u043a \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 Java\/C#, \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439, \u0442.\u043a. \u0432\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f goto, \u043d\u043e \u043d\u0435 labeled break).<br \/>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0431\u0443\u0434\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u044b \u0434\u043b\u044f managed \u044f\u0437\u044b\u043a\u043e\u0432, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a DXBC, SPIR-V, \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u044d\u043a\u044d\u043d\u0434 Java\/C#. \u041d\u043e \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u0432 \u043f\u043b\u0430\u043d\u0430\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0435 \u043a\u043e\u0434\u044b, \u0442.\u043a. \u0431\u0430\u0439\u0442\u043a\u043e\u0434\u044b \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430.<\/p>\n<p>  <a href=\"https:\/\/github.com\/Danil6969\/Ghidra-Nvidia-GPU\">\u041f\u0440\u043e\u0435\u043a\u0442<\/a><br \/>  <a href=\"https:\/\/github.com\/NationalSecurityAgency\/ghidra\">Ghidra<\/a><\/p>\n<p>  \u0421\u043f\u0440\u0430\u0432\u043a\u0438:<\/p>\n<p>  <a href=\"https:\/\/ghidra.re\/courses\/languages\/html\/pcoderef.html\">Pcode<\/a><br \/>  <a href=\"https:\/\/ghidra.re\/courses\/languages\/html\/sleigh.html\">Sleigh<\/a><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/509156\/\"> https:\/\/habr.com\/ru\/post\/509156\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/509156\/\">\u0414\u043b\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439 \u0434\u043b\u044f Ghidra, \u043e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442. \u041e\u043d\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0432\u0435\u0434\u044c \u0442\u0430\u043c \u0441\u0432\u043e\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430: \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u044b, \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0435\u0449\u0438, \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u0448\u0435\u0439\u0434\u0435\u0440\u043e\u0432. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430, \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u044b\u0439, \u0438 \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u0432\u0451\u0440\u0441\u0438\u0442\u044c.<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0430 \u0434\u0432\u0443\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u0447\u0442\u043e \u043a \u0447\u0435\u043c\u0443.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-306255","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/306255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=306255"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/306255\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=306255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=306255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=306255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}