Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • shalini_goel14

    shalini_goel14

    @shalini-goel14-ASmC2J Feb 27, 2009

    ms_csI did not use macros in java. I want to know whether the macros can be used in side the java program?

    There is no such concept of macros in Java unlike in C/C++. But I guess from jdk7 compiler onwards compile time Macros concept is coming.

    I would have answered your question well if you would have given an example of macro usages in C/C++ also.Anyways show me a situation where you want to use macros, java provide many new things to handle everything. 😀 I will try to solve that.

    One more thing don't mix up your C/C++ with Java because running and compilation of C/C++ programs is diferrent in many aspects to those of Java programs ok. 😀

  • ms_cs

    ms_cs

    @ms-cs-Ab8svl Feb 28, 2009

    I want to use macro for my assignment icg...While working in my college assignment I thought that if the macro feature is available in java it will better ...Myself with my friends team are designing the icg[intermediate code generation ] program for compiler.
    That's why I asked that question ya..

  • ms_cs

    ms_cs

    @ms-cs-Ab8svl Feb 28, 2009

    I think JDK7 already came..whether macro feature is enabled in that?

  • ms_cs

    ms_cs

    @ms-cs-Ab8svl Feb 28, 2009

    I think JDK7 already came..whether macro feature is enabled in that?

  • shalini_goel14

    shalini_goel14

    @shalini-goel14-ASmC2J Feb 28, 2009

    ms_csI think JDK7 already came..whether macro feature is enabled in that?

    Yes it is already there, I will check that and will let you know more about it ok. By the way what is your ICG all about? What kind of code you guys are making? Is it something bytecode kind of thing you all are making or something else?Which languages you are using?

  • ms_cs

    ms_cs

    @ms-cs-Ab8svl Feb 28, 2009

    We are now in a stage of generating mnemonic code...