Changeset 225 in dev for trunk/abdev/BasicCompiler_Common/include/NativeCode.h
- Timestamp:
- Jul 21, 2007, 11:47:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/NativeCode.h
r224 r225 2 2 3 3 #include <vector> 4 5 #include <BoostSerializationSupport.h> 4 6 5 7 class Schedule … … 9 11 { 10 12 None, 13 GlobalVar, // グローバル変数スケジュール 14 LocalVar, // ローカル変数スケジュール 15 Relocation, // リロケーション情報スケジュール 11 16 }; 12 17 … … 123 128 memcpy( this->codeBuffer + this->size, codeBuffer, size ); 124 129 this->size += size; 130 131 // 未完成 132 extern char *OpBuffer; 133 extern int obp; 134 memcpy( OpBuffer, codeBuffer, size ); 135 obp += size; 125 136 } 126 137 void Put( const NativeCode &nativeCode ) … … 132 143 codeBuffer[size++] = c; 133 144 Realloc(); 145 146 147 148 // 未完成 149 extern char *OpBuffer; 150 extern int obp; 151 OpBuffer[obp++]=c; 134 152 } 135 153 void Put( long l, Schedule::Type scheduleType = Schedule::None ) … … 142 160 *((long *)(codeBuffer+size))=l; 143 161 size += sizeof(long); 162 163 164 165 // 未完成 166 extern char *OpBuffer; 167 extern int obp; 168 *((long *)(OpBuffer+obp))=l; 169 obp+=sizeof(long); 144 170 } 145 171 };
Note:
See TracChangeset
for help on using the changeset viewer.