[cfe-dev] Need Help: A small problem in Clang
phongph
phongph.hut at gmail.com
Mon Mar 30 13:08:07 PDT 2015
Yes it is a class asignment.
Thank you anyway
Best Regards
On Mon, Mar 30, 2015 at 1:04 PM, David Chisnall-4 [via Clang Developers] <
ml-node+s42468n4044750h70 at n3.nabble.com> wrote:
> Is this a class assignment? Someone else was asking the same question
> recently, and it is impossible to help because the problem is poorly
> specified (for example, in optimised code this may end up being a small
> number of vector reads and writes, or a single memcpy call).
>
> David
>
> > On 27 Mar 2015, at 08:57, phongph <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4044750&i=0>> wrote:
> >
> > Hi everyone,
> >
> > I am having a small problem as follows, please help me:
> >
> > Implement, using LLVM/Clang, to count the number of memory operations
> > executed in a given function (recording reads and writes of fields and
> > arrays elements) of C programs. Here is an example:
> >
> > int* test(int* b, int* c) {
> > ...
> > for (int i=0; i<10; i++) {
> > a[i] =b[i] + c[i];
> > }
> > return a;
> > }
> >
> > After execution of the whole program, the output of the instrumentation
> > should return something like this for each method: "function test: reads
> =
> > 20; writes = 10".
> >
> > Thank you very much!
> >
> >
> >
> > --
> > View this message in context:
> http://clang-developers.42468.n3.nabble.com/Need-Help-A-small-problem-in-Clang-tp4044707.html
> > Sent from the Clang Developers mailing list archive at Nabble.com.
> > _______________________________________________
> > cfe-dev mailing list
> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4044750&i=1>
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
> _______________________________________________
> cfe-dev mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4044750&i=2>
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://clang-developers.42468.n3.nabble.com/Need-Help-A-small-problem-in-Clang-tp4044707p4044750.html
> To unsubscribe from Need Help: A small problem in Clang, click here
> <http://clang-developers.42468.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4044707&code=cGhvbmdwaC5odXRAZ21haWwuY29tfDQwNDQ3MDd8LTExNzc5MTM1MjY=>
> .
> NAML
> <http://clang-developers.42468.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
Best regards,
----------------------------------------
HongPhong PHAM
--
View this message in context: http://clang-developers.42468.n3.nabble.com/Need-Help-A-small-problem-in-Clang-tp4044707p4044766.html
Sent from the Clang Developers mailing list archive at Nabble.com.
More information about the cfe-dev
mailing list