Changeset 461 in dev for trunk/ab5.0/abdev/BasicCompiler32
- Timestamp:
- Mar 23, 2008, 11:35:33 AM (17 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler32
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler32/BasicCompiler.vcproj
r455 r461 76 76 <Tool 77 77 Name="VCLinkerTool" 78 AdditionalDependencies="comctl32.lib psapi.lib commond.lib smoothied.libimagehlp.lib shlwapi.lib"78 AdditionalDependencies="comctl32.lib psapi.lib commond.lib imagehlp.lib shlwapi.lib" 79 79 OutputFile="../ActiveBasic/BasicCompiler32.exe" 80 80 LinkIncremental="2" … … 180 180 <Tool 181 181 Name="VCLinkerTool" 182 AdditionalDependencies="comctl32.lib psapi.lib common.lib smoothie.libimagehlp.lib shlwapi.lib"182 AdditionalDependencies="comctl32.lib psapi.lib common.lib imagehlp.lib shlwapi.lib" 183 183 OutputFile="../ActiveBasic/BasicCompiler32.exe" 184 184 LinkIncremental="1" … … 1354 1354 </File> 1355 1355 <File 1356 RelativePath="..\BasicCompiler_Common\src\SmoothieImpl.cpp"1357 >1358 </File>1359 <File1360 1356 RelativePath="..\BasicCompiler_Common\src\Source.cpp" 1361 1357 > … … 1389 1385 </File> 1390 1386 <File 1387 RelativePath="..\BasicCompiler_Common\BasicFixed.h" 1388 > 1389 </File> 1390 <File 1391 1391 RelativePath="CommandValue.h" 1392 1392 > … … 1540 1540 <File 1541 1541 RelativePath="..\BasicCompiler_Common\include\Prototype.h" 1542 >1543 </File>1544 <File1545 RelativePath="..\BasicCompiler_Common\include\SmoothieImpl.h"1546 1542 > 1547 1543 </File> -
trunk/ab5.0/abdev/BasicCompiler32/Compile_Calc.cpp
r436 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <Compiler.h> … … 82 80 //符号あり 83 81 84 if(OldType==DEF_INTEGER || ( Smoothie::IsUnicode()&&OldType==DEF_CHAR)){82 if(OldType==DEF_INTEGER || (compiler.IsUnicode()&&OldType==DEF_CHAR)){ 85 83 //pop eax 86 84 compiler.codeGenerator.op_pop(REG_EAX); … … 92 90 compiler.codeGenerator.op_push(REG_EAX); 93 91 } 94 else if(OldType==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)){92 else if(OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)){ 95 93 //pop eax 96 94 compiler.codeGenerator.op_pop(REG_EAX); … … 166 164 //符号あり 167 165 168 if(OldType==DEF_INTEGER || ( Smoothie::IsUnicode()&&OldType==DEF_CHAR)){166 if(OldType==DEF_INTEGER || (compiler.IsUnicode()&&OldType==DEF_CHAR)){ 169 167 //pop eax 170 168 compiler.codeGenerator.op_pop(REG_EAX); … … 176 174 compiler.codeGenerator.op_push(REG_EAX); 177 175 } 178 else if(OldType==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)){176 else if(OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)){ 179 177 //pop eax 180 178 compiler.codeGenerator.op_pop(REG_EAX); … … 294 292 if(OldType==DEF_BOOLEAN|| 295 293 OldType==DEF_BYTE|| 296 OldType==DEF_WORD||OldType==DEF_INTEGER || ( Smoothie::IsUnicode()&&OldType==DEF_CHAR)) return;297 else if(OldType==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)){294 OldType==DEF_WORD||OldType==DEF_INTEGER || (compiler.IsUnicode()&&OldType==DEF_CHAR)) return; 295 else if(OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)){ 298 296 //pop eax 299 297 compiler.codeGenerator.op_pop(REG_EAX); … … 320 318 void ChangeTypeToByte(int OldType){ 321 319 //現在のスタックの内容をbyte型に変換する 322 if(OldType==DEF_BYTE||OldType==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)) return;320 if(OldType==DEF_BYTE||OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)) return; 323 321 324 322 ChangeTypeToLong(OldType); -
trunk/ab5.0/abdev/BasicCompiler32/Compile_CallProc.cpp
r459 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <Compiler.h> -
trunk/ab5.0/abdev/BasicCompiler32/Compile_Func.cpp
r449 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <Compiler.h> -
trunk/ab5.0/abdev/BasicCompiler32/Compile_ProcOp.cpp
r459 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <Program.h> -
trunk/ab5.0/abdev/BasicCompiler32/Compile_Set_Var.cpp
r290 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <Compiler.h> … … 212 210 } 213 211 void ExtendTypeTo32(int type,int reg){ 214 if(type==DEF_INTEGER || ( Smoothie::IsUnicode()&&type==DEF_CHAR)){212 if(type==DEF_INTEGER || (compiler.IsUnicode()&&type==DEF_CHAR)){ 215 213 //movsx reg32,reg16 216 214 compiler.codeGenerator.op_movsx_R32R16(reg,reg); … … 220 218 compiler.codeGenerator.op_and_RV(reg,(int)0x0000FFFF); 221 219 } 222 else if(type==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&type==DEF_CHAR)){220 else if(type==DEF_SBYTE || (compiler.IsUnicode()==false&&type==DEF_CHAR)){ 223 221 //movsx reg32,reg8 224 222 compiler.codeGenerator.op_movsx_R32R8(reg,reg); … … 230 228 } 231 229 void ExtendTypeTo16(int type,int reg){ 232 if(type==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&type==DEF_CHAR)){230 if(type==DEF_SBYTE || (compiler.IsUnicode()==false&&type==DEF_CHAR)){ 233 231 //movsx reg16,reg8 234 232 compiler.codeGenerator.op_movsx_R16R8(reg,reg); -
trunk/ab5.0/abdev/BasicCompiler32/Compile_Var.cpp
r453 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <LexicalScope.h> -
trunk/ab5.0/abdev/BasicCompiler32/NumOpe.cpp
r436 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <Compiler.h> … … 41 39 compiler.codeGenerator.op_push(REG_EAX); 42 40 } 43 else if(type==DEF_INTEGER || ( Smoothie::IsUnicode()&&type==DEF_CHAR)){41 else if(type==DEF_INTEGER || (compiler.IsUnicode()&&type==DEF_CHAR)){ 44 42 //movsx ebx,ax 45 43 compiler.codeGenerator.op_movsx_R32R16( REG_EBX, REG_EAX ); … … 48 46 compiler.codeGenerator.op_push(REG_EBX); 49 47 } 50 else if(type==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&type==DEF_CHAR)){48 else if(type==DEF_SBYTE || (compiler.IsUnicode()==false&&type==DEF_CHAR)){ 51 49 //movsx ebx,al 52 50 compiler.codeGenerator.op_movsx_R32R8( REG_EBX, REG_EAX ); -
trunk/ab5.0/abdev/BasicCompiler32/NumOpe_TypeOperation.cpp
r290 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <Compiler.h> -
trunk/ab5.0/abdev/BasicCompiler32/stdafx.h
r457 r461 24 24 25 25 #include "../BasicCompiler_Common/common.h" 26 #include "../BasicCompiler_Common/BasicFixed.h" 26 27 27 28 #include <Hashmap.h>
Note:
See TracChangeset
for help on using the changeset viewer.