|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Portable IDE
Many of you may have already done this.
For me it started out with a desire to compile robotics code from my flash drive. MPLAB took up too much space, and required installation, so i said to hell with it. I already had perl installed on my flash drive and a relatively organized directory structure for programming and running applications off my flash drive. I have a Programs Directory where i keep my programs, and rely heavily on bat files to make and open up my programs, whether that's running a c compiler or a Perl interpreter. I added the mcc18 compiler to my programs directory. then it began with the creation of a small perlscript that -read a resource file in the current directory to: --find location of mcc18.exe the compiler --find location of mplink.exe the linker -generated the batch commands to compile the .c files -generated the batch commands to link the .o files + .lkr + .lib files -created the batch file which could now be used without Perl and this worked well for a good amount of time, I could now compile the micro controller code from my flash drive. i figure from this i could easily create an IDE of some sort. so i did, simple IDE like program in Perl using Tk, relies on whichever text editor is specified in the resource file (which in my case was notepad2, I rather like notepad2). Regardless this works well, and runs completely independently off my flash drive, taking up approximately 131 megabytes (Perl interpreter + compiler). the IDE program is stored in my Perl\projects folder and runs from there. the program is called from a batch file in every Project Folder (the folder where all the .c, .h, .lkr, .lib files are stored) I'm still improving it, though it is fully functional. Let me know what you think. |
|
#2
|
|||
|
|||
|
Re: Portable IDE
Looks nice. This would make it easy for teams to copy over there code to a flash drive and then use it on any computer at a regional without having to install MPLab and all that fun stuff. Last year I brought my laptop so that wasnt an issue for me but I can see that helping alot of people. If you dont mind a bunch of people would probably use it if you posted the code.
|
|
#3
|
|||
|
|||
|
looks amazing... again i am also a programmer w/ a laptop so this wouldnt be very useful for me... but on the other hand ... its looks great... all i have to say is congrats
saves alot of time, great job |
|
#4
|
||||
|
||||
|
Re: Portable IDE
looks great!
|
|
#5
|
||||
|
||||
|
Re: Portable IDE
Nice idea, never thought of that before..
|
|
#6
|
||||
|
||||
|
A bit More Info
http://s.f.reza.googlepages.com/fide
I didn't think anyone would be interested, but there's a bit more information on that link. I can't say I've put any effort into making that web page. I'm still improving upon the project. I only started it two days ago, I've put in perhaps only 2 hours of actual development time. I've miscalculated the amount of space it takes, it's about 20 more megabytes than my original approximation. The Perl Interpreter takes about 50 megabytes. And while I could go through the trouble of compiling the code into a standalone executable, I think everyone should carry around The Perl Interpreter, it's a great tool to have. Please feel free to reply to this post. |
|
#7
|
||||
|
||||
|
Re: Portable IDE
Nice, anychance you could post the source for the perl program?
|
|
#8
|
||||
|
||||
|
Re: Portable IDE
Likely after development is complete. There still remains a few more features to add. I'm working on integrating IFI Loader into it...on top of other things. Until then I don't have to worry about properly placing comments throughout the code and what not. I would like to somewhat finish the project, this is more of a "Test of Concept". Let me know how the installation goes more importantly, If it's far too complicated to install I should create an Installer for it.
|
|
#9
|
|||||
|
|||||
|
Re: Portable IDE
As an FYI, you can do it with Eclipse as well. (Haven't tried it with MCC18, though.)
One thing I've found is that sometimes Eclipse leaves residue in %USERPROFILE%\.eclipse (eg, C:\Documents and Settings\Administrator\.eclipse). This may be safely deleted. Here's what I did for Windows (eclipse.cmd): Code:
@echo off IF EXIST "%USERProfile%\.eclipse" ( RMDIR /S /Q "%USERProfile%\.eclipse" ) pushd eclipse start "" "eclipse.exe" "-data \work" popd Just be warned, this may wear out a flash drive, since building projects often involves much writing to disk. You may want to opt for a mobile harddrive (eg, an iPod) instead. |
|
#10
|
||||
|
||||
|
Re: Portable IDE
I didn't know you could wear out a flashdrive
|
|
#11
|
|||
|
|||
|
Re: Portable IDE
Yes. I forget the exact number but there is a limit to how many times you can write data to the flash memory.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| portable controls w/o using tether | halomaster69 | Control System | 22 | 16-10-2005 02:18 |
| Dean Kamen's Portable Water Purifier | Clark Gilbert | Dean Kamen's Inventions | 6 | 16-09-2005 15:17 |
| Portable cordless drill press | Gui Cavalcanti | Technical Discussion | 25 | 03-08-2003 22:21 |
| Portable 12V Power Supplies? | archiver | 2000 | 2 | 24-06-2002 00:19 |