GSOC application

75 views
Skip to first unread message

AYUSH JAIN

unread,
Mar 6, 2016, 3:42:31 PM3/6/16
to archc
Hello, I am Ayush Jain. I am a 3rd year computer science engineering student from Jamia Millia Islamia University, New Delhi (India). I was interested in the project Frontend: New Parser in Python to ArchC Language.
I was trying to setup archC in my machine running Ubuntu 15.10 with all the requisite packages installed . While I successfully installed the systemC library, I was having trouble installing the archC package.  I ran the following commands successfully:
$ tar -xvf ArchC-2.4.1.tar.gz
$ cd ArchC-2.4.1
$ ./autogen.sh
$ INSTALLDIR=$(pwd)/../acinstall           # Set installdir to the parent folder, subfolder install
$ SYSTEMCPATH=$(pwd)/../systemcinstall     # Where we previously installed SystemC
$ ./configure --prefix=$INSTALLDIR --with-systemc=$SYSTEMCPATH
However after this when I run make command, in the directory /quickstart-archc/ArchC-2.4.1/src/acpp I get the error arhc_lex.c is not found. This file is not there in the directory as well. I have attached the screenshot of the error as well as the directory. Please take a look and guide me in rectifying this error.

Screenshot (41).png

Maxiwell Garcia

unread,
Mar 6, 2016, 6:23:34 PM3/6/16
to ar...@googlegroups.com
Hi Ayush,

The archc_lex.c is generated by flex tool. 
Make sure that you have the packages below:
  • bison (GNU Bison) 3.02
  • flex 2.5


--
You received this message because you are subscribed to the Google Groups "archc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archc+un...@googlegroups.com.
To post to this group, send email to ar...@googlegroups.com.
Visit this group at https://groups.google.com/group/archc.
For more options, visit https://groups.google.com/d/optout.



--
Maxiwell Salvador Garcia
PhD Computer Science Student
Institute of Computing - UNICAMP
Campinas - SP - Brazil

Message has been deleted

AYUSH JAIN

unread,
Mar 7, 2016, 2:30:59 AM3/7/16
to archc
Thankyou for your help. I have successfully installed systemc, archc and ran a MIPS instruction set simulator using archc. How should I proceed after completing the quickstart guide?

Sandro Rigo

unread,
Mar 7, 2016, 10:57:28 AM3/7/16
to ar...@googlegroups.com

If you are interested in the parser project you should take a good look at our current parser, which is written using flex and bison.

Currently we have the acpp.lib module. It is a library that exports all ArchC parser functions. It provides access to data structures resulting from the parser, mainly as linked lists with all the ISA information and etc.

This should be reproduced in the new parser in order to make it easy to connect it to other ArchC tools.

On Mon, Mar 7, 2016 at 2:30 AM, AYUSH JAIN <ayushco...@gmail.com> wrote:
Thankyou for your help. I have successfully installed systemc, archc and ran a MIPS instruction set simulator using archc. How should I proceed after completing the quickstart guide?

--
You received this message because you are subscribed to the Google Groups "archc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archc+un...@googlegroups.com.
To post to this group, send email to ar...@googlegroups.com.
Visit this group at https://groups.google.com/group/archc.
For more options, visit https://groups.google.com/d/optout.



--
Prof. Sandro Rigo
Computer Systems Laboratory
IC-UNICAMP
http://www.ic.unicamp.br/~sandro
Message has been deleted

AYUSH JAIN

unread,
Mar 7, 2016, 11:42:31 AM3/7/16
to archc, san...@ic.unicamp.br
Where can I find the code for the parser?
Also, could you please explain how I can reproduce the parser in python?

Rodolfo Azevedo

unread,
Mar 8, 2016, 11:18:49 AM3/8/16
to archc, Sandro Rigo
Hi Ayush,

  The current parser is in our source code repository. It is called acpp. 

  You may also want to look for some parser packages in Python, like pyparsing.

  Regards,

    Rodolfo

Rodolfo Jardim de Azevedo
http://www.ic.unicamp.br/~rodolfo
IC - University of Campinas - UNICAMP
Reply all
Reply to author
Forward
0 new messages