user79567: I don't have port, but when I want to compile my code (even empty files),
I encounter this error:
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

The code is:
int LED_red=4;
int LED_yellow =2;
int green =0;

void setup() {
  // put your setup code here, to run once:
  pinMode(LED_red,OUTPUT);
  pinMode(LED_yellow,OUTPUT);
  pinMode(green,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LED_red,HIGH);
  digitalWrite(LED_yellow,LOW);
  digitalWrite(green ,LOW);
  delay(5000);
  digitalWrite(LED_yellow,HIGH);
  digitalWrite(LED_red,LOW);
  digitalWrite(green,LOW);
  delay(5000);
  digitalWrite(green,HIGH);
  digitalWrite(LED_yellow,LOW);
  digitalWrite(LED_red,LOW);
  delay(5000);
}

Sketch uses 998 bytes (3%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

I want a hex address for cordinate this code with Proteus, but it doesn't compile and dosn't give me hex address.

user4143: There is nothing to do.
What you are seeing is not an error. It is merely an informational message telling you how much of the available resources your sketch is using. Since it is using far less than the maximum available (as you would expect from an empty sketch) you have no problem.
You only need to worry about those figures when the "amount left" gets too small.

user68310: 
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

This is not an error message. Rather, it's a message that results from a successful compile of your empty programme.

Sketch uses 998 bytes (3%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

Neither is this an error message. Rather, it's a message that results from a successful compile of your more substantial programme.
To export the HEX file from the Arduino IDE for Proteus, go to:

Menu bar -> Sketch -> Export compiled Binary

The short-cut is Ctrl+Alt+S.
You will find the .hex file in the same directory as your sketch.

79567: <p>I don't have port, but when I want to compile my code (even empty files),
I encounter this error:</p>
<pre><code>Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
</code></pre>
<p>The code is:</p>
<pre class="lang-cpp prettyprint-override"><code>int LED_red=4;
int LED_yellow =2;
int green =0;

void setup() {
  // put your setup code here, to run once:
  pinMode(LED_red,OUTPUT);
  pinMode(LED_yellow,OUTPUT);
  pinMode(green,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LED_red,HIGH);
  digitalWrite(LED_yellow,LOW);
  digitalWrite(green ,LOW);
  delay(5000);
  digitalWrite(LED_yellow,HIGH);
  digitalWrite(LED_red,LOW);
  digitalWrite(green,LOW);
  delay(5000);
  digitalWrite(green,HIGH);
  digitalWrite(LED_yellow,LOW);
  digitalWrite(LED_red,LOW);
  delay(5000);
}
</code></pre>
<pre><code>Sketch uses 998 bytes (3%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
</code></pre>
<p>I want a hex address for cordinate this code with Proteus, but it doesn't compile and dosn't give me hex address.</p>
 4143: <p>There is nothing to do.</p>
<p>What you are seeing is <em>not an error</em>. It is merely an informational message telling you how much of the available resources your sketch is using. Since it is using far less than the maximum available (as you would expect from an empty sketch) you have no problem.</p>
<p>You only need to worry about those figures when the &quot;amount left&quot; gets too small.</p>
 68310: <blockquote>
<p><code>Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.</code><br>
<code>Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.</code></p>
</blockquote>
<p>This is not an error message. Rather, it's a message that results from a successful compile of your empty programme.</p>
<blockquote>
<p><code>Sketch uses 998 bytes (3%) of program storage space. Maximum is 32256 bytes.</code><br>
<code>Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.</code></p>
</blockquote>
<p>Neither is this an error message. Rather, it's a message that results from a successful compile of your more substantial programme.</p>
<p>To export the HEX file from the Arduino IDE for Proteus, go to:</p>
<ul>
<li>Menu bar -&gt; Sketch -&gt; Export compiled Binary</li>
</ul>
<p>The short-cut is <code>Ctrl+Alt+S</code>.</p>
<p>You will find the .hex file in the same directory as your sketch.</p>
