mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 09:09:42 +02:00
* ti8086nodeutils.InsertMemorySizes: stack segment creation moved to a separate
method git-svn-id: trunk@27851 -
This commit is contained in:
parent
886159e73a
commit
70732aedbb
@ -32,6 +32,7 @@ interface
|
|||||||
type
|
type
|
||||||
ti8086nodeutils = class(tnodeutils)
|
ti8086nodeutils = class(tnodeutils)
|
||||||
class procedure InsertMemorySizes; override;
|
class procedure InsertMemorySizes; override;
|
||||||
|
class procedure InsertStackSegment;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -44,12 +45,17 @@ implementation
|
|||||||
|
|
||||||
|
|
||||||
class procedure ti8086nodeutils.InsertMemorySizes;
|
class procedure ti8086nodeutils.InsertMemorySizes;
|
||||||
var
|
|
||||||
stacksizeleft,stackblock: LongInt;
|
|
||||||
i: Integer;
|
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
if current_settings.x86memorymodel in x86_far_data_models then
|
if current_settings.x86memorymodel in x86_far_data_models then
|
||||||
|
InsertStackSegment;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
class procedure ti8086nodeutils.InsertStackSegment;
|
||||||
|
var
|
||||||
|
stacksizeleft,stackblock: LongInt;
|
||||||
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
maybe_new_object_file(current_asmdata.asmlists[al_globals]);
|
maybe_new_object_file(current_asmdata.asmlists[al_globals]);
|
||||||
new_section(current_asmdata.asmlists[al_globals],sec_stack,'__stack', 16);
|
new_section(current_asmdata.asmlists[al_globals],sec_stack,'__stack', 16);
|
||||||
@ -68,7 +74,6 @@ implementation
|
|||||||
inc(i);
|
inc(i);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user