mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 07:09:09 +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
|
||||
ti8086nodeutils = class(tnodeutils)
|
||||
class procedure InsertMemorySizes; override;
|
||||
class procedure InsertStackSegment;
|
||||
end;
|
||||
|
||||
|
||||
@ -44,12 +45,17 @@ implementation
|
||||
|
||||
|
||||
class procedure ti8086nodeutils.InsertMemorySizes;
|
||||
var
|
||||
stacksizeleft,stackblock: LongInt;
|
||||
i: Integer;
|
||||
begin
|
||||
inherited;
|
||||
if current_settings.x86memorymodel in x86_far_data_models then
|
||||
InsertStackSegment;
|
||||
end;
|
||||
|
||||
|
||||
class procedure ti8086nodeutils.InsertStackSegment;
|
||||
var
|
||||
stacksizeleft,stackblock: LongInt;
|
||||
i: Integer;
|
||||
begin
|
||||
maybe_new_object_file(current_asmdata.asmlists[al_globals]);
|
||||
new_section(current_asmdata.asmlists[al_globals],sec_stack,'__stack', 16);
|
||||
@ -68,7 +74,6 @@ implementation
|
||||
inc(i);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user