Closed Thread
Results 1 to 2 of 2

Thread: Compiler option for FLAT address compilation of pointers

  1. #1
    tumstech is offline Newbie
    Join Date
    Nov 2007
    Posts
    2
    Rep Power
    0

    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. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143
    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.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 04-30-2011, 04:12 PM
  2. Using pointers to pointers to arrays as parameters
    By ThemePark in forum C and C++
    Replies: 6
    Last Post: 02-05-2010, 05:21 AM
  3. Flat TV or ordinary TV?
    By tossy in forum The Lounge
    Replies: 6
    Last Post: 09-19-2008, 11:44 AM
  4. Programming a SAX-RSS Parser In 30 Minutes Flat
    By bcoe in forum Java Tutorials
    Replies: 0
    Last Post: 02-19-2008, 05:08 PM

Tags for this Thread

Bookmarks

Posting Permissions

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