Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

compiler construction chat
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics
View previous topic :: :: View next topic  
Author Message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Sep 30, 2011 11:53 pm    Post subject: compiler construction chat
Reply with quote

Quote:
Thanks all I alwanted to be part of language developing team

unfortunately the chances are pretty slim, there aren' t too many companies dealing with compiler production

but you can always pursue that as an hobby

for example You might try to build Your own REXX interpreter on Your PC...

You might start with scanners and parser
http://books.google.com/books/about/Lex_yacc.html?id=YrzpxNYegEkC
or
http://books.google.com/books?id=3Sr1V5J9_qMC&source=gbs_similarbooks
for the successors

and then look at the sources of OPEN OBJECT REXX very good coding style

and You have the chance of learning a new programming language C
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sat Oct 01, 2011 11:00 pm    Post subject: compiler construction chat
Reply with quote

Thanks again Enrico icon_smile.gif

With experts guidance like you ppl I got the courage to work on my goal icon_smile.gif

Lets see where I do stand say a month down the lane icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Oct 01, 2011 11:29 pm    Post subject: Reply to: compiler construction chat
Reply with quote

I forgot the must have the dragon book
both the first edition
http://www.amazon.com/Compilers-Principles-Techniques-Alfred-Aho/dp/0201100886
and the second one
http://www.amazon.com/Compilers-Principles-Techniques-Tools-2nd/dp/0321486811/ref=pd_sim_b7

let me know if You need more hints and suggestions

another very interesting article with a completely different approach
is Jack Crenshaw' s Let' s build a compiler, with a PASCAL working sample
it was available until a few months ago at http://compilers.iecc.com/crenshaw/
but the IECC idiots deleted every trace of it

if You want to get started on serious programming just drop the windows bullshit and install a good linux distro
the canditates are
ubuntu, probably the most friendly , You will have to add ( IIRC ) the development tools
debian, I had lots of issues with it and after a couple of attempt I dropped it
fedora, ( the one I feel most comfortable with ) when doing the almost-quick install it asks what overall environment You want
and choosing the software development environment it will install all You need
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sat Oct 01, 2011 11:32 pm    Post subject: compiler construction chat
Reply with quote

Now I am lost icon_redface.gif

Sorry Enrico

Which should I start of with Assuming I have basic idea of C language?

If you could tell me the order to read or should I do parallel reads?
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 12:01 am    Post subject:
Reply with quote

Thanks So I just wanna confirm

1.Install Linux

I have never installed an OS so fst I will try to acheieve step 1 and contact you icon_smile.gif

2.Read the Dragon book to know how to build a compiler and the LEX and YACC
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Oct 02, 2011 12:13 am    Post subject: Reply to: compiler construction chat
Reply with quote

OK... Linux first
to get the hand of it You might try a live cd distribution..
boot from a cd and use it for a while before installing it
IIRC look into UBUNTU it has some magic to install it under windows

do not bother yet with the dragon books,
they are terrific from a theorethical point of view, but You might loose the initial sprint if You start with them
they are not cheap also

I would start with the old lex and yacc downloading the sources of the examples from the o' reilly site here
http://shop.oreilly.com/product/9781565920002.do
and click on the Download Example Code
it will keep You busy for a while
after You have mastered the examples You will be ready for the next step

also googling for scanners parsers compiler construction will provide lot of reading material

here a good link for some theory
http://www.diku.dk/hjemmesider/ansatte/torbenm/Basics/

another one with code
http://www.personal.kent.edu/~rmuhamma/Compilers/compiler.html

the more You search the more You find icon_biggrin.gif
anyway it is a pity that quite a few good links have disappeared ( the targets )
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 12:29 am    Post subject: compiler construction chat
Reply with quote

I have googled and got the Crenshaw tutrial ==> Lets build a compile icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Oct 02, 2011 12:37 am    Post subject: Reply to: Free the dataset
Reply with quote

which one!
the fouled up and almost unreadable I guess...
http://home.iae.nl/users/mhx/crenshaw/tiny.html icon_biggrin.gif

I wan' t able to find the original which described building step by step a tiny compiler using pascal
I remember downloading it a couple of years ago, but now has disappeared
found it again, icon_biggrin.gif
http://www.penguin.cz/~radek/book/lets_build_a_compiler.pdf
the original was in text format, so a cut and paste was enough to build and run the examples

here is another good one
http://foja.dcs.fmph.uniba.sk/kompilatory/docs/compiler.pdf

but probably it might be better to take the conversation somewhere else
Ill ' check which part of the forum might be the less disturbing for those not interested
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 12:39 am    Post subject: compiler construction chat
Reply with quote

Exactly :-) I got the fedora downloaded and its in iso format guess that a sort of cd kind
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Oct 02, 2011 12:50 am    Post subject: Reply to: compiler construction chat
Reply with quote

why not take a look here
http://www.ubuntu.com/download/ubuntu/windows-installer

it might be interesting to run it alongside windows
( if You are windows based and You do not want to clobber Your setup)

You might try to install fedora with a dual boot, but You will have to repartition Your disk
and doing it for the first time might lead to a disaster icon_biggrin.gif

I am running under VMware, but You have to pay for it
or You might download the VMware trial edition and test i for 1 month
and then decide

You might have issues if You are on win/XP 32 bits only 3GB of storage
but still Linux is not hungry for storage 1gb of virtualized storage is more than enough

on a 64bit system with more memory VMWARE is the most practical solution
both system running at the same time

after the Linux installation I recommend the installation of OOREXX

if You have a PC with a bit of horsepower You might get a heck of performance out of it

on my iMac quad core 16 GB I run mac osx Lion 2 linuxes and 1 MVS
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Oct 02, 2011 1:05 am    Post subject: Reply to: compiler construction chat
Reply with quote

what system are You running on Your PC,
and what is Your PC configuration

as far as ubuntu is concerned they suggest to install the 32 bit version

an I would suggest the definitely more stable 10.4 LTS ( long term support )
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 1:16 am    Post subject:
Reply with quote

I got a hp laptop running on 64 bit windoes 7 and 4gb ram and 320 gb hd
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 1:27 am    Post subject:
Reply with quote

Will that suffice for heavy duty ?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Oct 02, 2011 1:29 am    Post subject: Reply to: compiler construction chat
Reply with quote

I would definitely give a try to VMware !
Code:
http://www.vmware.com/products/workstation/using.html


but also a dual boot wit a primary linux partition of 32 gb and a swap partition of 8 GB
would be a very nice setup

and after a while unless You are a fan of windoze games You will get rid of windows icon_biggrin.gif

vmware will be less painful if you need to reinstall
You will certainly be doing it at least a couple of times ..
to learn and have a properly setup system !

after You are done with the linux install say so
and I' ll tell You how to install ooRexx,
there are a couple of patches to be applied
but the oorexx developers did not care
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 1:41 am    Post subject:
Reply with quote

sure enrico will do those home work and get back to you icon_smile.gif

Thanks for your unconditional support wish I treat you with lasangne (hope i spelled it right)
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Oct 02, 2011 1:44 am    Post subject: Reply to: compiler construction chat
Reply with quote

almost right... the correct spelling is lasagne icon_biggrin.gif
anyway I am not a fanatic food nationalist ...
( too many italians traveling, asking for spaghetti and complaining that they did not taste good )
whenever I travel I try to understand and appreciate the local food..
a few years ago when I went to Nepal for a climbing expedition I really enjoyed the Nepalese cuisine and the cheerfulness of the people
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 9:18 am    Post subject:
Reply with quote

There is one Italian restaurant here i would die for its cuisine it may not be the taste as they do in Italy but my mind is registered to its taste


My charger got spoofed icon_evil.gif I gotto get a new one today when market is up
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 11:26 pm    Post subject:
Reply with quote

Sending the first message from Ubuntu icon_smile.gif Its so coool!!!
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Oct 02, 2011 11:37 pm    Post subject: Reply to: compiler construction chat
Reply with quote

glad You made it icon_biggrin.gif
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 11:47 pm    Post subject:
Reply with quote

So now how to write some simple Pascal codes here??
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Any docs / links for isub- cobol comp... SRICOBSAS COBOL Programming 4 Fri Aug 26, 2016 2:35 pm
No new posts Problem Compiling cobol code with Cob... amitc23 COBOL Programming 2 Wed Aug 24, 2016 1:50 pm
No new posts COBOL compiler upgrade vicky10001 COBOL Programming 4 Mon Jul 25, 2016 1:44 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us