Changeset 91 in dev for BasicCompiler64
- Timestamp:
- Apr 7, 2007, 10:07:26 PM (18 years ago)
- Location:
- BasicCompiler64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/BasicCompiler.vcproj
r89 r91 1289 1289 </File> 1290 1290 <File 1291 RelativePath="..\BasicCompiler_Common\Diagnose.cpp" 1292 > 1293 </File> 1294 <File 1291 1295 RelativePath="..\BasicCompiler_Common\error.cpp" 1292 1296 > -
BasicCompiler64/Compile_ProcOp.cpp
r90 r91 210 210 } 211 211 } 212 void CompileBufferInProcedure(UserProc *pUserProc){212 void _compile_proc(UserProc *pUserProc){ 213 213 extern char *basbuf; 214 214 extern HANDLE hHeap; … … 814 814 HeapDefaultFree(SynonymErrorWords); 815 815 } 816 817 void CompileBufferInProcedure( UserProc &userProc ){ 818 if( userProc.IsUsing() == false || userProc.IsCompiled() ) return; 819 820 _compile_proc( &userProc ); 821 822 // ログを履く 823 char temporary[8192]; 824 temporary[0]=0; 825 lstrcat( temporary, "------------------------------------------------------------------\n" ); 826 sprintf( temporary + lstrlen(temporary), "【 %s のコード情報】\n", userProc.GetFullName().c_str() ); 827 sprintf( temporary + lstrlen(temporary), "code size: %d bytes\n", userProc.GetCodeSize() ); 828 lstrcat( temporary, "------------------------------------------------------------------\n" ); 829 lstrcat( temporary, "\n" ); 830 Smoothie::Logger::Put( temporary ); 831 } 816 832 void CompileLocal(){ 817 833 extern UserProc **ppSubHash; … … 824 840 pUserProc=GetSubHash("_System_InitDllGlobalVariables"); 825 841 if(pUserProc){ 826 CompileBufferInProcedure( pUserProc);842 CompileBufferInProcedure( *pUserProc ); 827 843 } 828 844 else SetError(300,NULL,cp); … … 842 858 pUserProc=ppSubHash[i2]; 843 859 while(pUserProc){ 844 CompileBufferInProcedure( pUserProc);860 CompileBufferInProcedure( *pUserProc ); 845 861 pUserProc=pUserProc->pNextData; 846 862 } … … 861 877 //_System_InitStaticLocalVariablesは一番最後にコンパイル 862 878 pSub_System_InitStaticLocalVariables->KillCompileStatus(); 863 CompileBufferInProcedure( pSub_System_InitStaticLocalVariables);879 CompileBufferInProcedure( *pSub_System_InitStaticLocalVariables ); 864 880 865 881 //_System_Call_Destructor_of_GlobalObjectは一番最後にコンパイル 866 882 pSub_System_Call_Destructor_of_GlobalObject->KillCompileStatus(); 867 CompileBufferInProcedure( pSub_System_Call_Destructor_of_GlobalObject);883 CompileBufferInProcedure( *pSub_System_Call_Destructor_of_GlobalObject ); 868 884 } -
BasicCompiler64/MakePeHdr.cpp
r90 r91 436 436 //ネイティブコード生成はここまで 437 437 ////////////////////////////////////////////////////////// 438 439 440 441 //////////////////////////////// 442 // ここで一旦ログを取る 443 //////////////////////////////// 444 Diagnose(); 438 445 439 446
Note:
See TracChangeset
for help on using the changeset viewer.