Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2016, 07:11:20 19:11


Login with username, password and session length


Pages: [1]
Print
Author Topic: Libray File in CCS?  (Read 3247 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, 09:04:15 21: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: 39

Thank You
-Given: 44
-Receive: 18


« Reply #1 on: April 27, 2011, 06:57:37 06: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, 10:09:16 10: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: 20

Thank You
-Given: 35
-Receive: 10


« Reply #3 on: May 05, 2011, 04:37:59 04: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
V.I.P
Active Member
*****
Offline Offline

Posts: 200

Thank You
-Given: 369
-Receive: 52


« Reply #4 on: May 07, 2011, 11:33:21 11: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, 01:55:44 13: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: 2018

Thank You
-Given: 514
-Receive: 477


Top Topic Starter


« Reply #6 on: May 11, 2011, 01:16:07 13: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

nothing to say..
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