The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 02:55:55 14:55


Login with username, password and session length


Pages: [1]
Print
Author Topic: Libray File in CCS?  (Read 5848 times)
0 Members and 1 Guest are viewing this topic.
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« on: April 26, 2011, 08:04:15 20:04 »

Hi!
I'd like to hide a code snippet in a large program I'm supplying to a customer. Normally, I compile the code snippet to a library file and invoke it from the main file, but how can I hide the snippet in the CCS compiler? I don't want to change compiler at this late stage. Any suggestions or workarounds?

Thanx in advance...
Logged

Code Warrior
jaikumar
Junior Member
**
Offline Offline

Posts: 44

Thank You
-Given: 47
-Receive: 18


« Reply #1 on: April 27, 2011, 05:57:37 05:57 »

The guys at the CCS forum may help you.

http://www.ccsinfo.com/forum/

Regards,
Jai.
Logged
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« Reply #2 on: May 01, 2011, 09:09:16 09:09 »

Thanx for the tip, but after a little consideration, I think I will create a header of my own, apart from those already needed for the project.

All the best...
Logged

Code Warrior
picflash
Newbie
*
Offline Offline

Posts: 26

Thank You
-Given: 61
-Receive: 10


« Reply #3 on: May 05, 2011, 03:37:59 03:37 »

You can encrypt the library, and send to your customer.
#include <myLib.c.encrypted>
CCS C will know how to decrypted during compile.
Logged
Unhappy
Senior Member
****
Offline Offline

Posts: 283

Thank You
-Given: 984
-Receive: 100


« Reply #4 on: May 07, 2011, 10:33:21 10:33 »

Dear Robban
Why you give source code files to customer? In my opinion you should give only hex file. (I say this from my experience after learning the things from market)That is the only most discreet method to hide your coding technique from purchaser.
Regards
UnHappy
Logged
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« Reply #5 on: May 10, 2011, 12:55:44 12:55 »

In this case the entire code is already known and public, it's only a few lines that are my own invention, and those lines make all the difference... Lips sealed
Logged

Code Warrior
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #6 on: May 11, 2011, 12:16:07 12:16 »

Far from your question, it depends on the contract between you and that customer Robban. If you agreed to open the code, then all snippets belong to him, so hiding snippets means cheating, unless you have already specified that it is up to you on what to show and hide.

I remember when I used CCS years ago, it creates a library, may be as you said, create a sperate header file and let it be compiled alone to a library and invoke it.

Good luck
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC