NO

Author Topic: IDE, project configuration  (Read 3977 times)

Steve A.

  • Guest
IDE, project configuration
« on: October 31, 2010, 02:38:32 AM »
Using PellesC IDE, I can't seem to find in the Project Configuration, where I can mofify these items:

1) specify the name of the compiled EXE file,
    it defaults to: project-name.exe

2) sub-directory (folder) where I want the output to be created,

3) an option or toggle for the compiler to generate an ASM listing,


Any suggestions on these ?

Thanks,
Steve A.


Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: IDE, project configuration
« Reply #1 on: October 31, 2010, 07:09:49 AM »
Quote
1) specify the name of the compiled EXE file,
    it defaults to: project-name.exe
In project tree rename from content menu.

Quote
3) an option or toggle for the compiler to generate an ASM listing,
pocc.exe option /T like /Tx86-asm
You can change it from project options macros CCFLAGS.
Output/listing file is still with name extension .obj
« Last Edit: October 31, 2010, 07:46:26 AM by timovjl »
May the source be with you

CommonTater

  • Guest
Re: IDE, project configuration
« Reply #2 on: October 31, 2010, 07:47:09 AM »
Using PellesC IDE, I can't seem to find in the Project Configuration, where I can mofify these items:
2) sub-directory (folder) where I want the output to be created,

Any suggestions on these ?

Timo has answered your other two questions.  For the output folder: that is set when creating the project from the New->Project dialog.  Look at the bottom, there's an arrow with "more".  If you click that you will see the option you want.  However, once a project is created this is fixed, unless you want to manually edit the project file in a text editor (not recommended).











Steve A.

  • Guest
Re: IDE, project configuration
« Reply #3 on: November 01, 2010, 02:27:14 AM »
Quote
3) an option or toggle for the compiler to generate an ASM listing,
pocc.exe option /T like /Tx86-asm
You can change it from project options macros CCFLAGS.
Output/listing file is still with name extension .obj

This is the default settings for CCFLAGS:
-Tx86-coff -Ot -Ob1 -fp:precise -W1 -Gd -Ze -Zx -Go

which compiles fine.

This is the modified settings for CCFLAGS:
-Tx86-asm -Ot -Ob1 -fp:precise -W1 -Gd -Ze -Zx -Go

which generates this error:
POLINK: fatal error: Invalid machine type in object 'myprog.obj'.
*** Error code: 1 ***

I guess pocc can't produce both, an .obj file and an .asm file ...?
It's either one or the other ?
Or, is there a way to do that ?

Steve A

Steve A.

  • Guest
Re: IDE, project configuration
« Reply #4 on: November 01, 2010, 03:44:10 PM »
Quote
/Fo option (POCC)

Syntax:
/Fo filename

Description:
The /Fo option specifies the name and path of the output file. Default is to use the name of the source file with the extension .obj. Use this option to rename the output file, or to place it in a different directory than the source file.

The docs provide only this information regarding the output filename, but, don't show an actual example of it's use.
What is it's actual usage, when specifying the output file name ?

It seems that whatever I put as filename gets ignored.
If my project is named "myprog", the output file is always "myprog.obj".

When using this setting for CCFLAGS:
-Tx86-asm -Ot -Ob1 -fp:precise -W1 -Gd -Ze -Zx -Go -Fo test.asm

the result is still "myprog.obj".

Steve A

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: IDE, project configuration
« Reply #5 on: November 01, 2010, 05:26:34 PM »
This Add-In may help.
It compiles active document with -Tx86-asm option and open it to new window.
« Last Edit: November 01, 2010, 05:39:05 PM by timovjl »
May the source be with you

Steve A.

  • Guest
Re: IDE, project configuration
« Reply #6 on: November 01, 2010, 09:24:08 PM »
This Add-In may help.
It compiles active document with -Tx86-asm option and open it to new window.

Hey Timo,
Okay, I see how that works.

That produces a nice xxx.asm file.
But, then the build stops and does not produce the .obj or .exe files.

Does anyone know why pocc can't output both: .obj and .asm during the same compile step ?

I mean, it has to generate an .asm file anyway, (either in memory or on disk), when it builds an .obj.
Why not just dump the .asm to disk by using a switch ?

Steve A