Re: [fpc-other] ESCAPE: Environment for the Simulation of Computer Architectures for the Purpose of Education

2015-10-20 Thread Skybuck Flying

Looks interesting.

Does this still compile under Delphi ?

I guess I could try it out myself, but a bit busy now...

Bye,
 Skybuck.

-Original Message- 
From: Jonas Maebe

Sent: Monday, 19 October 2015 14:24
To: fpc-other@lists.freepascal.org
Subject: [fpc-other] ESCAPE: Environment for the Simulation of Computer 
Architectures for the Purpose of Education


Hi,

In the 90s, a professor and a PhD student at our department developed
a simulator for pipelined and microprogrammed architectures (based on
the Hennessy and Patterson DLX architecture), in Delphi. We've used it
since then every year in the lab sessions for our computer
architecuture classes. In 2010, I ported the program to FPC and
Lazarus and we use it compiled for Linux/Qt in a VM nowadays. I did
not have any Lazarus experience when I started that port (and I'm
still far from an expert), but the process still went fairly smooth.

I recently asked for and got permission to publish the source code
under the GPLv3, so here it is: https://github.com/jmaebe/ESCAPE


Jonas
___
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other 


___
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other


Re: [fpc-other] ESCAPE: Environment for the Simulation of Computer Architectures for the Purpose of Education

2015-10-20 Thread Skybuck Flying



-Original Message- 
From: Jonas Maebe

Sent: Tuesday, 20 October 2015 10:45
To: Other FPC related discussions.
Subject: Re: [fpc-other] ESCAPE: Environment for the Simulation of Computer 
Architectures for the Purpose of Education


Skybuck Flying wrote:

Running into a few issues with Delphi, would be nice if you could fix it
up a bit so that it runs under Delphi ?


"
I don't have Delphi. I've never even used Delphi. You can get the
original Delphi version (including some bugs that were fixed later on)
by checking out one of the first revisions.
"

Ok thanks for the tip !

There seems to be a "delphi-version" branch :)/alternative to the master 
branch, I'll try that one :)


Bye,
 Skybuck. 


___
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other


Re: [fpc-other] ESCAPE: Environment for the Simulation of Computer Architectures for the Purpose of Education

2015-10-20 Thread Skybuck Flying

Ok,

I tried and compiled the Delphi version.

Only issue Delphi XE7 ran into was DirectorySeparator.

TPath.DirectorySeparator did not seem to work.

So I replaced it lazy with '\' for now to see if it would compile.

It does compile and run.

However there is some problem with the examples as far as I can tell.

When loading micro.mpr there is a file format error stating that microcode 
may be incorrect.


I may have to try the pre-build executables or try lazarus later on.

Perhaps the Delphi version can be fixed/made compatible with the examples.

When I click on about box in Delphi version it says:

Escape 1.1.6

So it does seem to be a recent version and the same version as example 
material was written for:


http://users.elis.ugent.be/escape/download.html#exercises

Not sure what to make if this little error for now :)

The GUI does look somewhat interesting.

I find the project itself as an introduction to micro architecture a bit 
weird though.


It's very much wired and such.

I would have preferred a general/abstract introduction first and then only 
later a wired like approach as this.


But this is very cool though.

Don't know yet exactly how it works or how "hardcore" it is =D

But it may be of some use some day to understand micro architecture better ! 
;) =D


I guess this was some kind of school/college/university material to teach 
people how to design real chips.


Because for just understanding the software side of it, it would be a bit 
too much overkill ? to much down to the wire ?


For actually hardware/chip design it seems to be just fine ! ;) Though those 
are also programmed in software but ofcourse timing and wires come into play 
with that  as well I would imagine ! ;)


Bye,
 Skybuck.

P.S.: I am to busy leveling up in world of warships nowadays ! LOL :) But 
when the day comes I am done with that... who knows... I might dive into 
this project a little bit more lol :) 


___
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other


Re: [fpc-other] JavaScript based Turbo Pascal 3 compiler

2013-10-24 Thread Skybuck Flying

A python to pascal compiler would be nice ;)

Bye,
 Skybuck.
___
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-other


[fpc-other] Re: NoTarget could also be a target

2011-04-08 Thread Skybuck Flying

Bit sloppy of me not to include a solution...

I guess a simple solution would be:

const
   ConstNoTargetUnUsed1 = 0;
{$if defined(i386)}
   bla = 1;
{$ifend}
{if defined(arm))
   bla = 2;
{$ifend}


This constant is just there to smooth over the compile process...

ConstNoTargetUnUsed1

In other locations

ConstNoTargetUnUsed2 could be introduced as well...


Perhaps a {if defined(NoTarget)) might be usefull somewhere...
but for the const it probably needs a default constant which is never 
used...



A cleaner solution is probably to just wrap the const in a conditional like 
so:


{$if Defined(i386) or Defined(Arm) or Defined(Etc))
   const
{$ifend}

{$if Defined(i386))
   bla = 1
{ifend}
{if Defined(arm))
   bla = 2
{ifend}

And so forth...

Bye,
 Skybuck.



- Original Message - 
From: Skybuck Flying skybuck2...@hotmail.com

To: Free Pascal Other MailList fpc-other@lists.freepascal.org
Sent: Thursday, 7 April, 2011 00:22 AM
Subject: NoTarget could also be a target



Hello

I noticed a certain little problem with the free pascal compiler code.

Some sections assuming that at least one define is present.

for example:

const
{$if defined(i386)}
   bla = 1;
{$ifend}
{if defined(arm))
   bla = 2;
{$ifend}


^ This creates a little problem when no target or no defines are present.

Perhaps no target could be the default (or unknown target) (in case an 
operating system is ever called no ;) :))


By adding a no target as a potential target this would allow to test 
certain parts of the compiler without actually having to specify a 
target...


Bye,
 Skybuck.





___
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-other


[fpc-other] Running Mac OS X in emulator on Windows ?

2008-12-12 Thread Skybuck Flying

Hello,

I would like to experiment with free pascal and Mac OS X, maybe even 
Lazarus.


However I would like to run Mac OS X inside some kind of emulator.

I tried Virtual PC and PearPC without much luck.

I tried some torrents from the pirate bay.. not much luck.

Is anybody actually running Max OS X inside an emulator on windows 
successfully ?


The farthest I got was with PearPC and PearPC Control Panel.. however that 
last application screws with filedisk driver which is bad.


(I also used Power ISO 4.3 to convert DMG to ISO...)

The error I got from pearpc was something about memory fail for the dmg to 
iso thingy... other torrent/iso said can't find file or whatever. (it was 
osx86 which probably can't run in pearpc... also tried it in virtual pc 
which didn't work as well)


Kinda pissing me off a bit why can't I play with Mac OS X BOEHOE ?! ;) 
:)


Stupid Steve Jobs ! :)

I suspect some cross platform developers might be moving towards Mac OS X 
since... windows can run on it...


So Mac OS X seems nice for cross platform development with emulators... 
while Windows sux ?


Maybe time for Bill Gates to frag Steve Jobs up his peep and make sure 
Windows doesn't run on Mac OS X as well ? ;)


But then again... Maybe Apple users will start liking Windows and simply 
switch to windows ! LOL... probably not though ? ;)


Bye,
 Skybuck. 


___
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-other