Results 1 to 2 of 2

Thread: porting java code to C

  1. #1
    Join Date
    Feb 2011
    Beans
    21

    Question porting java code to C

    i have to port a java library to c, the library californium is written in java and i need it for the contiki-os which is written in C.
    i have not much expertise in C which is why i am asking if you guys can provide with some tutorials or tools which can help in porting the code to C

  2. #2
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,172
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: porting java code to C

    Porting is keeping the language, but aiming for a different platform (OS/CPU).

    What you want is a rewrite... and I seriously doubt that you can do it in a reasonable time given that you admit you have little experience in C.

    But Californium is just a Java implementation of the CoAP framework and there is already a C implementation of same: http://sourceforge.net/projects/libcoap/ . You may have to "port" it to contiki, though.
    Last edited by ofnuts; March 13th, 2013 at 11:04 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •