Like Tree7Likes
  • 1 Post By quzah
  • 5 Post By quzah
  • 1 Post By CommonTater

farcoreleft

This is a discussion on farcoreleft within the C Programming forums, part of the General Programming Boards category; What is the modern day equivalent of farcoreleft? It is still usable in Turbo C++ 3.0 but not in 4.5....

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    5

    farcoreleft

    What is the modern day equivalent of farcoreleft? It is still usable in Turbo C++ 3.0 but not in 4.5.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    1. Google what farcoreleft does.
    2. Google keywords based on that description.
    3. ???


    Am I doing it right?


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Why do you need that?

    Memory segmentation, far and near addressing, big and tiny models, etc. are all concepts long and thankfully dead. These days memory addressing is virtual, with the addresses you see being offsets from the base address of your program's memory space, not real machine addresses.

    Just test the return value of malloc(), calloc() and realloc() they'll tell you fast enough if you're out of memory.

    Also... since I know about the old DOS trick of grabbing all available memory... Attempting to do that on a multitasking system is very likely to crash every running program on your system...As in... "Did you really need to malloc() 32 gigs of ram?".

    Use the memory you need, free it as soon as you're done with it... play fair.


    Plus... if you're still playing with Turbo C or Turbo C++ ... it's time to move up to a real compiler... Pelles for C ... MinGw for C++ ...

  4. #4
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by quzah View Post
    1. Google what farcoreleft does.
    Tish, I thot you meant something else.

    {:P_?
    Last edited by MK27; 09-07-2011 at 09:56 PM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by MK27 View Post
    Tish, I thot you meant something else.
    Don't feel bad... while the ole noggin' was digging for the answer, I flashed on this...

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by CommonTater View Post
    "Did you really need to malloc() 32 gigs of ram?".
    How else do you expect me to be able to make a Tic-Tac-Toe game?!


    Quzah.
    AndrewHunter likes this.
    Hope is the first step on the road to disappointment.

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by quzah View Post
    How else do you expect me to be able to make a Tic-Tac-Toe game?!
    Quzah.
    One might reasonably assume in THAT much memory you could at least manage Othello (aka Reversi)....
    Or if you're particularly careful... maybe even Hangman...

  8. #8
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    @franc1280: having been rendered meaningless by

    Quote Originally Posted by CommonTater View Post
    memory addressing is virtual
    farcoreleft == infinity

    Bank on it!
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  9. #9
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by MK27 View Post
    @franc1280: having been rendered meaningless by

    farcoreleft == infinity

    Bank on it!
    A core segment of us might find several offsets of puns concerning that.

    (In fact: I know people who would *pay* for a straight line like that one! )

  10. #10
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by CommonTater View Post
    A core segment of us might find several offsets of puns concerning that.
    Always the finger pointer eh? This has gone on far enough, and I'm going to address this before you start heaping accusations. If memory serves me, there haven't been nearly enough puns on this forum.


    Quzah.
    Hope is the first step on the road to disappointment.

  11. #11
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by quzah View Post
    Always the finger pointer eh? This has gone on far enough, and I'm going to address this before you start heaping accusations. If memory serves me, there haven't been nearly enough puns on this forum.
    Quzah.
    Trying to swap in a dynamic form of humour in a static forum not well known for it's upgradeability???

    How refreshing?


  12. #12
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by CommonTater View Post
    Trying to swap in a dynamic form of humour in a static forum not well known for it's upgradeability???

    How refreshing?

    I just peeked in here to see if you were going to poke more fun at me again. Does it count if I use something as basic as that?


    Quzah.
    Last edited by quzah; 09-07-2011 at 11:19 PM. Reason: +use
    Hope is the first step on the road to disappointment.

  13. #13
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by quzah View Post
    I just peeked in here to see if you were going to poke more fun at me again. Does it count if I use something as basic as that?
    Quzah.
    Must be your goto move, huh?
    quzah likes this.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21