+ Reply to Thread
Results 1 to 2 of 2

Thread: Compiler option for FLAT address compilation of pointers

  1. #1
    Newbie tumstech is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    2

    Question Compiler option for FLAT address compilation of pointers

    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 baseffset.

  2. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,686
    Blog Entries
    57
    You would need to check on your documentation for your compiler. However, hardcoding pointers can be very dangerous or illegal depending on the operating environment.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts