Compiler option for FLAT address compilation of pointers

Discussion in 'C' started by tumstech, Nov 21, 2007.

  1. tumstech

    tumstech New Member

    Joined:
    Jun 19, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Computer Engineer
    Location:
    India
    Hi friends, i have a doubt, in most of the 16 bit compiler like MSVC1.5,

    all the far pointers are 32 bit address but they are converted to 20 bit

    address when accessing data and writing data, how do i tell my compiler

    to use the 32 bit address as a flat address and not as (base:segment). i

    have a program in which i would like to hardcode the address greater than

    1MB, after enabling A20, and ask the compiler to use all the pointers

    that i hardcode the address above 1MB to access directly with out

    considering it as base:eek:ffset.
     
  2. Salem

    Salem New Member

    Joined:
    Nov 15, 2007
    Messages:
    133
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Please don't PM me for 1:1 support.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice