Compiler module

add_data_segment

procedureSource

Asks for a named data segment in the program being built. Returns it and whether the compiler will really create it on this target.

add_data_segment :: (
    section_name: string,
    characteristics := Data_Segment_Characteristics.READ | .WRITE,
    alignment: s32 = 16,
    w: Workspace = -1
) -> (segment: *Data_Segment, actual_segment_will_be_created: bool)

Parameters

section_name: string
characteristics := Data_Segment_Characteristics.READ | .WRITE
alignment: s32 = 16
w: Workspace = -1

Returns

segment: *Data_Segment
actual_segment_will_be_created: bool

See also