Author Topic: Code::Blocks it's portable or not ?  (Read 3009 times)

Offline selevo

  • Single posting newcomer
  • *
  • Posts: 3
Code::Blocks it's portable or not ?
« on: June 01, 2020, 08:19:37 am »
Hi!
I did not find anything in the description about this.
Can someone tell?
I want portable for windows Code :: Blocks + SDCC
--
Thank's

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Code::Blocks it's portable or not ?
« Reply #1 on: June 01, 2020, 06:31:57 pm »
You can create a portable version of CodeBlocks by keeping all the configuration files in the same directory containing codeblocks.exe .

To do so, start CodeBlocks normally, then close it in order to create or update the config file.

For Windows: copy all files in %appdata%\codeblocks\ beginning with "default." to the CodeBlocks executable directory.

For Linux: the config files will be in ~\.config\codeblocks

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks it's portable or not ?
« Reply #2 on: June 01, 2020, 09:12:25 pm »
cblauncher.exe is meant to make cb portable. I don't know how it works or what it does.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline hongwenjun

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: Code::Blocks it's portable or not ?
« Reply #3 on: June 03, 2020, 06:58:57 am »
http://git.io/codeblocks

Portable configurations that I back up and save

Offline hongwenjun

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: Code::Blocks it's portable or not ?
« Reply #4 on: June 03, 2020, 07:05:27 am »
CodeBlocks + SDCC open source compiler C51 microcontroller compilation settings

SDCC-small device C compiler download URL: http://sdcc.sourceforge.net

Recommended installation directory C:\sdcc

CodeBlocks compiler settings, select SDCC Compiler

The compiler directory is filled with C:\sdcc
Search directory-compiler header file C:\sdcc\include
Search directory-compiler library file C:\sdcc\lib

Code
# Set directory
C:\sdcc
C:\sdcc\include
C:\sdcc\lib

# CodeBlocks Create a new project, choose MCS51 Project, and choose SDCC Compiler by default, the template will automatically add the command to convert C51 to HEX file
cmd /c "packihx <$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).ihx >$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).hex"