Index: trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h
===================================================================
--- trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h	(revision 275)
+++ trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h	(revision 276)
@@ -10,6 +10,4 @@
 #endif
 
-void ReallocNativeCodeBuffer();
-
 // コード生成時の部分的なスケジューリング
 class PertialSchedule
@@ -18,5 +16,4 @@
 	int typeSize;	// 対象サイズ（一般的には8bit/32bit）
 
-	int _obpOld;	// 未完成
 public:
 	PertialSchedule( int codePos, int typeSize )
@@ -24,6 +21,4 @@
 		, typeSize( typeSize )
 	{
-		extern int obp;
-		_obpOld = obp;
 	}
 	~PertialSchedule()
@@ -38,8 +33,4 @@
 	{
 		return typeSize;
-	}
-	int GetObpOld() const
-	{
-		return _obpOld;
 	}
 };
@@ -201,5 +192,4 @@
 	// Continue用のコード位置情報の管理
 	std::vector<long> continueCodePositions;
-	std::vector<long> _continueCodePositions_ObpOld;
 
 public:
@@ -210,5 +200,4 @@
 	// Exit Subスケジュールの管理
 	std::vector<long> exitSubCodePositions;
-	std::vector<int> _exitSubCodePositions_ObpOld;
 
 	// Gotoスケジュールの管理
@@ -239,4 +228,8 @@
 		pNativeCode = &nativeCode;
 	}
+	long GetNativeCodeSize() const
+	{
+		return pNativeCode->GetSize();
+	}
 
 	void NextSourceLine()
@@ -256,25 +249,12 @@
 	{
 		continueCodePositions.clear();
-		_continueCodePositions_ObpOld.clear();
 	}
 	void ContinueAreaBegin()
 	{
 		continueCodePositions.push_back( pNativeCode->GetSize() );
-
-		extern int obp;
-		_continueCodePositions_ObpOld.push_back( obp );
 	}
 	void ContinueAreaEnd()
 	{
 		continueCodePositions.pop_back();
-		_continueCodePositions_ObpOld.pop_back();
-	}
-	long GetContinueCodePosOld() const
-	{
-		if( _continueCodePositions_ObpOld.size() == 0 )
-		{
-			return -1;
-		}
-		return _continueCodePositions_ObpOld[_continueCodePositions_ObpOld.size()-1];
 	}
 	
@@ -489,5 +469,5 @@
 	void PutOld( const NativeCode &nativeCode )
 	{
-		pNativeCode->Put( nativeCode, true );
+		pNativeCode->Put( nativeCode );
 	}
 	void PutOld( char c )
Index: trunk/abdev/BasicCompiler_Common/include/NativeCode.h
===================================================================
--- trunk/abdev/BasicCompiler_Common/include/NativeCode.h	(revision 275)
+++ trunk/abdev/BasicCompiler_Common/include/NativeCode.h	(revision 276)
@@ -6,6 +6,4 @@
 
 #include <BoostSerializationSupport.h>
-
-void ObpPlus( int step = 1 );
 
 class UserProc;
@@ -270,17 +268,17 @@
 	{
 	}
-	NativeCode( const NativeCode &nativeCode, bool isOpBuffer )
+	NativeCode( const NativeCode &nativeCode )
 		: allocateSize( 8192 )
 		, codeBuffer( (char *)malloc( allocateSize ) )
 		, size( 0 )
 	{
-		Put( nativeCode, isOpBuffer );
-	}
-	NativeCode( const char *codeBuffer, int size, bool isOpBuffer )
+		Put( nativeCode );
+	}
+	NativeCode( const char *codeBuffer, int size )
 		: allocateSize( 8192 )
 		, codeBuffer( (char *)malloc( allocateSize ) )
 		, size( 0 )
 	{
-		Put( codeBuffer, size, isOpBuffer );
+		Put( codeBuffer, size );
 	}
 	~NativeCode()
@@ -296,5 +294,5 @@
 	{
 		Clear();
-		Put( nativeCode, false );
+		Put( nativeCode );
 	}
 
@@ -316,9 +314,4 @@
 		return *(long *)(this->codeBuffer+codePos);
 	}
-	long _GetLong_ObpOld( int _obpOld ) const
-	{
-		extern char *OpBuffer;
-		return *(long *)(OpBuffer+_obpOld);
-	}
 
 	void Overwrite( int codePos, char c )
@@ -326,22 +319,10 @@
 		codeBuffer[codePos] = c;
 	}
-	void OverwriteOld( int _obpOld, char c )
-	{
-		// 未完成
-		extern char *OpBuffer;
-		OpBuffer[_obpOld] = c;
-	}
 	void Overwrite( int codePos, long newLongValue )
 	{
 		*(long *)(this->codeBuffer+codePos) = newLongValue;
 	}
-	void OverwriteOld( int _obpOld, long newLongValue )
-	{
-		// 未完成
-		extern char *OpBuffer;
-		*(long *)(OpBuffer+_obpOld) = newLongValue;
-	}
-
-	void Put( const char *codeBuffer, int size, bool isOpBuffer = true )
+
+	void Put( const char *codeBuffer, int size )
 	{
 		Realloc( this->size + size );
@@ -349,15 +330,6 @@
 		memcpy( this->codeBuffer + this->size, codeBuffer, size );
 		this->size += size;
-
-		// 未完成
-		if( isOpBuffer )
-		{
-			extern char *OpBuffer;
-			extern int obp;
-			memcpy( OpBuffer + obp, codeBuffer, size );
-			ObpPlus( size );
-		}
-	}
-	void Put( const NativeCode &nativeCode, bool isOpBuffer );
+	}
+	void Put( const NativeCode &nativeCode );
 	void Put( _int64 i64data )
 	{
@@ -373,32 +345,4 @@
 		*((long *)(codeBuffer+size))=l;
 		size += sizeof(long);
-
-
-
-		// 未完成
-		switch( scheduleType )
-		{
-		case Schedule::None:
-			// 何もしない
-			break;
-		case Schedule::GlobalVar:
-			extern CSchedule *pobj_GlobalVarSchedule;
-			pobj_GlobalVarSchedule->add();
-			break;
-		case Schedule::DataTable:
-			extern CSchedule *pobj_DataTableSchedule;
-			pobj_DataTableSchedule->add();
-			break;
-		case Schedule::Relocation:
-			// 未完成
-			break;
-		default:
-			Jenga::Throw( "scheduleTypeが無効な値を保持している" );
-			break;
-		}
-		extern char *OpBuffer;
-		extern int obp;
-		*((long *)(OpBuffer+obp))=l;
-		ObpPlus( sizeof(long) );
 	}
 	void PutUserProcSchedule( const UserProc *pUserProc, bool isCall );
@@ -412,12 +356,4 @@
 		Realloc( size + 1 );
 		codeBuffer[size++] = c;
-
-
-
-		// 未完成
-		extern char *OpBuffer;
-		extern int obp;
-		OpBuffer[obp]=c;
-		ObpPlus();
 	}
 
Index: trunk/abdev/BasicCompiler_Common/include/Procedure.h
===================================================================
--- trunk/abdev/BasicCompiler_Common/include/Procedure.h	(revision 275)
+++ trunk/abdev/BasicCompiler_Common/include/Procedure.h	(revision 276)
@@ -373,9 +373,4 @@
 		return *pCompilingUserProc;
 	}
-
-
-
-	mutable long _beginOpAddressOld;
-	mutable long _endOpAddressOld;
 };
 
Index: trunk/abdev/BasicCompiler_Common/include/Prototype.h
===================================================================
--- trunk/abdev/BasicCompiler_Common/include/Prototype.h	(revision 275)
+++ trunk/abdev/BasicCompiler_Common/include/Prototype.h	(revision 276)
@@ -30,4 +30,5 @@
 	{
 		ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Symbol );
+		ar & BOOST_SERIALIZATION_NVP( isUsing );
 	}
 
Index: trunk/abdev/BasicCompiler_Common/include/option.h
===================================================================
--- trunk/abdev/BasicCompiler_Common/include/option.h	(revision 275)
+++ trunk/abdev/BasicCompiler_Common/include/option.h	(revision 276)
@@ -34,5 +34,5 @@
 
 	// モジュールサイズに関するログを生成する
-	//#define USE_TRACE_FOR_SIZE
+	#define USE_TRACE_FOR_SIZE
 
 	// XMLシリアライズに関するログを生成する
