Code::Blocks

User forums => Using Code::Blocks => Topic started by: selevo on June 01, 2020, 08:19:37 am

Title: Code::Blocks it's portable or not ?
Post by: selevo 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
Title: Re: Code::Blocks it's portable or not ?
Post by: Pecan 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
Title: Re: Code::Blocks it's portable or not ?
Post by: oBFusCATed 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.
Title: Re: Code::Blocks it's portable or not ?
Post by: hongwenjun on June 03, 2020, 06:58:57 am
http://git.io/codeblocks

Portable configurations that I back up and save
Title: Re: Code::Blocks it's portable or not ?
Post by: hongwenjun 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: [Select]
# 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"