Go to Post i'm not addicted to CD.com...i can stop anytime i want. - RogerR [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-03-2009, 00:14
skiz skiz is offline
Registered User
no team
 
Join Date: Mar 2009
Location: Singapore
Posts: 5
skiz is an unknown quantity at this point
mission possible?:o

Is there such a thing or a way such that a window that is popped out by clicking a .exe file be changed to a .hex file? Or is it impossible?
  #2   Spotlight this post!  
Unread 24-03-2009, 00:40
EricH's Avatar
EricH EricH is online now
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,789
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: mission possible?:o

What language are you programming in? Most people here speak C, C++, or Labview almost exclusively. Delphi users should see this thread (or the message that popped up when you posted in this subforum).

Despite having "Delphi" in the site name, very few here code in that language. This site is run by a FIRST Robotics Competition team that is sponsored in part by Delphi Automotive, hence the name of the site. If you have any questions about the competition, or the languages used in the competition (namely, C, C++, and Labview), feel free to ask us.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #3   Spotlight this post!  
Unread 24-03-2009, 01:35
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: mission possible?:o

Quote:
Originally Posted by skiz View Post
Is there such a thing or a way such that a window that is popped out by clicking a .exe file be changed to a .hex file? Or is it impossible?
Assuming you're post fits the topic of the forum (as described in EricH's post), I also assume you're talking about somehow converting a Window Executable into a program image file for an embedded microcontroller. While this is theoretically possible, you'd have to find a program that converted the machine code from one processor architecture (ISA) to another. In doing so, you'd be essentially integrating a minimal virtual machine into the code at compile time, because the chances that you could directly convert from instructions in one ISA to another are quite small, especially since you're going from a desktop processor (probably x86 and therefore a CISC) to an embedded processor, which is probably a RISC, which means that one instruction in the EXE file would probably correspond to multiple instructions in the HEX file. Also there would have to be a mechanism for translating memory addresses from one computer architecture to another. Essentially what you would be making is a compiler that translates x86 machine code into your embedded processor's machine code, which might be even harder than writing something like a C compiler, because C is designed to be a more or less portable language. I don't know of any product available that does this.

It should also be noted that this description thus far is assuming that the entirety of the code takes the form of direct processor instructions, and that your program doesn't make use of any hardware interrupts, operating system calls (it is highly likely that it does considering you mention that your program has a graphical interface), or dynamic loading. Such utilities have no analog on a microcontroller.

In short, I know of nothing that exists that works the way you want. A better approach would be to go back to the source code (hopefully in a common language like C) and convert that to the desired platform.

Lots of good information at the linked Wikipedia articles if you want to do some more reading on the subject of computer architectures.

Good luck,
--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor

Last edited by RyanCahoon : 24-03-2009 at 01:39.
Closed Thread


Thread Tools
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mission Mayhem 2008 Arefin Bari Off-Season Events 47 29-09-2008 16:14
Team Mission Statements pjamma Team Organization 1 25-05-2008 14:04
pic: Mission Impossible Steve W Extra Discussion 3 30-10-2007 10:34
Mission Statement Madison FIRST-related Organizations 11 19-05-2003 14:54
The mission of FIRST archiver 2000 2 23-06-2002 23:07


All times are GMT -5. The time now is 01:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi