Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

8
[C] Are there any tricks to running really old, legacy C code?
Post Body

I recently found a very old, very legacy codebase for a game I used to play. When I first downloaded it, it wouldn't compile due to some syntax errors that I believe would not have been syntax errors 10 years ago when the game was active. I made a few code changes and got it compiling, but now it crashes with `Abort trap 6" (a memory error) during some parts of gameplay.

I'm not a C programmer, so I apologize if any of these are really dumb questions!

  • This was meant to run on linux hosts 10 years ago (it is a MUD server), and I'm getting it running on OSX. Would it be easier for me to use something like an Ubuntu VM or EC2 instance to make my environment more similar to the initial environment?
  • Is there any way to "trick" my gcc into acting like it's 10 years older via flags or options?
  • Are there any modern C debugging tools/libraries I might be able to use to help me figure out where the errors are happening? Right now the game shuts down with Abort trap 6 and no stack trace or info at all.

Any help is greatly appreciated!

Author
Account Strength
0%
Account Age
17 years
Verified Email
Yes
Verified Flair
No
Total Karma
22,835
Link Karma
1,600
Comment Karma
21,152
Profile updated: 8 months ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago