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 198807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:58:09+00:00 2026-05-11T16:58:09+00:00

What is the difference between run-time and compile-time?

  • 0

What is the difference between run-time and compile-time?

  • 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-11T16:58:10+00:00Added an answer on May 11, 2026 at 4:58 pm

    The difference between compile time and run time is an example of what pointy-headed theorists call the phase distinction. It is one of the hardest concepts to learn, especially for people without much background in programming languages. To approach this problem, I find it helpful to ask

    1. What invariants does the program satisfy?
    2. What can go wrong in this phase?
    3. If the phase succeeds, what are the postconditions (what do we know)?
    4. What are the inputs and outputs, if any?

    Compile time

    1. The program need not satisfy any invariants. In fact, it needn’t be a well-formed program at all. You could feed this HTML to the compiler and watch it barf…
    2. What can go wrong at compile time:
      • Syntax errors
      • Typechecking errors
      • (Rarely) compiler crashes
    3. If the compiler succeeds, what do we know?
      • The program was well formed—a meaningful program in whatever language.
      • It’s possible to start running the program. (The program might fail immediately, but at least we can try.)
    4. What are the inputs and outputs?
      • Input was the program being compiled, plus any header files, interfaces, libraries, or other voodoo that it needed to import in order to get compiled.
      • Output is hopefully assembly code or relocatable object code or even an executable program. Or if something goes wrong, output is a bunch of error messages.

    Run time

    1. We know nothing about the program’s invariants—they are whatever the programmer put in. Run-time invariants are rarely enforced by the compiler alone; it needs help from the programmer.
    2. What can go wrong are run-time errors:

      • Division by zero
      • Dereferencing a null pointer
      • Running out of memory

      Also there can be errors that are detected by the program itself:

      • Trying to open a file that isn’t there
      • Trying find a web page and discovering that an alleged URL is not well formed
    3. If run-time succeeds, the program finishes (or keeps going) without crashing.
    4. Inputs and outputs are entirely up to the programmer. Files, windows on the screen, network packets, jobs sent to the printer, you name it. If the program launches missiles, that’s an output, and it happens only at run time 🙂
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 203k
  • Answers 203k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer localSeries.fillFunction = setSeriesColor; The code you have right now is… May 12, 2026 at 8:37 pm
  • Editorial Team
    Editorial Team added an answer Public Shared Function Authenticate (account As String, password As String,… May 12, 2026 at 8:37 pm
  • Editorial Team
    Editorial Team added an answer Since you're not returning a DataView but a DataTable, you… May 12, 2026 at 8:37 pm

Related Questions

Ok. So I have some code that maps certain controls on a winForm to
I'm writing some optimized C code that basically runs through an array and does
I was looking at Stack Overflow question What is the difference between abstract function
What is the benefit of Connectedness as defined by Resource Oriented Architecture (ROA)? The

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.