Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 15th, 2005, 04:25 PM
Hector McG Hector McG is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 1 Hector McG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 25 sec
Reputation Power: 0
Running Delphi compiled exe's on 386 processor board

Hi,

I'm pretty much a newbie to Delphi, although I once did a fair bit of Pascal programming back in the dim and distant 80's. So far it's been a pretty good experience, but I've got a problem I just can't find any information on in any Delphi books.

I have a number of in house developed utilities we use in the (very small) company I work for. These have been developed in house on Delphi 6 or Delphi 7. These are all pretty small utilities (geodetic library, RS232 handling/ formatting apps etc). For reasons of convenience/ portability, we are trying to get these apps runnning on a small i386 based single board computer. The problem is, none of the Delphi 6/7 compiled exe's will run on the i386 single board PC. This is the case even for the most simple form/button/ "Hello world" test program. The same code complied in Delphi 4 works fine on the i386 board. The Delphi 6/7 compiled code runs fine on a 486 board. I can't simply recompile every utility on Delphi 4 ( or at least not easily). The error is always " Illegal instruction at 000000 in 0000000" . Note that the code is being compiled on a newish P4 system. Does Delphi compile based on the development PC processor ( i.e. is it by default compiling for a P4 processor, which might explain the problem running the same code on a 386 processor?) Everything I have read seems to say that it should run on a 386 or later processor ok. There is no extensive maths being used, or I would suspect the lack of a maths co-processor as having something to do with it. The 386 single board PC doesn't have the memory of (flash) hard disk space to compile the units on the target PC.

Any help or suggestions, folks?

Reply With Quote
  #2  
Old October 16th, 2005, 01:44 AM
Zone Zone is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 37 Zone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 30 m 30 sec
Reputation Power: 4
I certainly don't have experience directly with what you're asking about, as I use only C++ builder 6. In that environment, though, there is a way to change compiler options:
Project->Options and click the Advanced Compiler tab. On this tab, I can select the instruction set to use: 386, 486, pentium, etc. If your environment works the same way, you might check your settings on that tab. Hope this helps.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Running Delphi compiled exe's on 386 processor board


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT