Thread: making programs communicate && making a (simple) compiler

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    7

    making programs communicate && making a (simple) compiler

    Hi, I would like to know if anyone has any ideas as to how I could make programs communicate. You see, I need a very basic multi-platform program that executes routines used by platform specific programs. Also, how would I go about making a compiler, just for some really basic scripting? (I can handle parsing, but I have no clue how to translate commands)

    P.S. In case you're wondering, this is all for LEGO® Mindstorms® tools. My goal is to make a set of more flexible computer tools for the RCX® than ever made before.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    The simplest portable way to set up interprocess communication is to use files. Simple, right?

    As for writing a compiler, this will take some time even for the most rudimentary. Why? You have to parse data, generate all sorts of tables so that you can reference the data, generate the machine code, and place the output into the executable container, to oversimplify the process somewhat.

    In short, not a weekend project.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    This site has a lot of info on inter process communication and a lot of other usefull things.

    http://www.cs.cf.ac.uk/Dave/C/

    >I need a very basic multi-platform program that executes
    >routines used by platform specific programs.

    I'm sorry, I do not really understand.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WIN API simple programs
    By Blizzarddog in forum Windows Programming
    Replies: 4
    Last Post: 03-24-2003, 02:58 AM
  2. Making a Simple Database System
    By Speedy5 in forum C++ Programming
    Replies: 1
    Last Post: 03-14-2003, 10:17 PM
  3. Making a compiler.
    By Perica in forum C++ Programming
    Replies: 21
    Last Post: 11-12-2002, 04:06 AM
  4. Making a Compiler in C++
    By rqcompiler in forum C++ Programming
    Replies: 0
    Last Post: 04-21-2002, 11:54 AM
  5. Help making a simple newb prog look nice
    By morphia in forum C++ Programming
    Replies: 7
    Last Post: 11-10-2001, 12:37 PM