Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 627067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:29:17+00:00 2026-05-13T19:29:17+00:00

For a project at university I need to extend an existing C application, which

  • 0

For a project at university I need to extend an existing C application, which shall in the end run on a wide variety of commercial and non-commercial unix systems (FreeBSD, Solaris, AIX, etc.).

Which things do I have to consider when I want to write a C program which is most portable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:29:17+00:00Added an answer on May 13, 2026 at 7:29 pm

    The best advice I can give, is to move to a different platform every day, testing as you go.
    This will make the platform differences stick out like a sore thumb, and teach you the portability issues at the same time.

    Saving the cross platform testing for the end, will lead to failure.

    That aside

    • Integer sizes can vary.
    • floating point numbers might be represented differently.
    • integers can have different endianism.
    • Compilation options can vary.
    • include file names can vary.
    • bit field implementations will vary.

    It is generally a good idea to set your compiler warning level up as high as possible,
    to see the sorts of things the compiler can complain about.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made a Google App Engine application as a class project in my university.
Im writing a compiler for university project, and I would like to transform my
During my years at the university I had a personal project of making a
I'm writing an implementation of a diffie-hellman key exchange in ruby for a project
Im a final year university student who is doing a license plate recognition system
I am an undergraduate student from Mumbai University, now in my final year. The
beginner programmer - basic C#, first year of university going too slow in terms
I am not sure If I'm correct in posting in this forum but I
I know this is not a very technical question, but it's for all technical
I'm using svn on OS X, and am able to check items out of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.