compilation

Compiling a .vbproj or .csproj project file without Visual Studio

ぃ、小莉子 提交于 2019-12-18 12:47:52
问题 Is there a way to compile a .vbproj or .csproj project file directly, just like Visual Studio does? When you compile in Visual Studio, the "output" window shows the actual call to the compiler, which normally looks like: vbc.exe [bunch of options] [looooong list of .vb files] I would like to programatically call "something" that would take the .vbproj file and do whatever Visual Studio does to generate this long command line. I know i could parse the .vbproj myself and generate that command

cmake: compilation statistics

 ̄綄美尐妖づ 提交于 2019-12-18 12:19:20
问题 I need to figure out which translation units need to be restructured to improve compile times, How do I get hold of the compilation time, using cmake, for my translation units ? 回答1: I would expect to replace the compiler (and/or linker) with 'time original-cmd'. Using plain 'make', I'd say: make CC="time gcc" The 'time' program would run the command and report on the time it took. The equivalent mechanism would work with 'cmake'. If you need to capture the command as well as the time, then

Example for LL(1) Grammar which is NOT LALR?

女生的网名这么多〃 提交于 2019-12-18 12:06:20
问题 I am learning now about parsers on my Theory Of Compilation course. I need to find an example for grammar which is in LL(1) but not in LALR. I know it should be exist. please help me think of the most simple example to this problem. 回答1: Some googling brings up this example for a non-LALR(1) grammar, which is LL(1): S ::= '(' X | E ']' | F ')' X ::= E ')' | F ']' E ::= A F ::= A A ::= ε The LALR(1) construction fails, because there is a reduce-reduce conflict between E and F. In the set of LR

Build or compile

旧巷老猫 提交于 2019-12-18 11:53:49
问题 I have a theoretical question about the difference between compile and build. I'm programming in a c++ project that takes a lot of time to build, so I have told to do build just in the cases in where "I have modified any header file". Is that true? If I add a new attribute in a headder file, then do I have to build? Is not enough compiling? Thanks! 回答1: "Building" is a vague term that usually means the entire process, preprocessing, compiling and linking. Which parts of these processes have

How to compile universal libraries on Mac OS X?

為{幸葍}努か 提交于 2019-12-18 11:09:06
问题 This may be a very silly question, but I'm new to developing on Macs and am having a hard time with the universal binaries. I've got an application that I'm compiling in QT Creator, which according to lipo is producing i386 architecture outputs. As I understand it, that means it is producing Mac OS X 32 bit outputs. The application depends on two external libraries. One of these libraries I'm compiling by calling ./config first, and then make. ./config states that it is "Configured for darwin

Java code transform at compile time

大兔子大兔子 提交于 2019-12-18 10:57:17
问题 I would like to transform java source code at compile time just before passing the source code to the compiler. In other word I would like to create a preprocessor able to transform "bla bla bla" into any other code such as: new MyClass("bla", 3) My actual motivation is to do string encryption, as explained here Some people suggest writing custom annotation processors but as far as I understand annotations: they can be used to generate new class file, but not to transform existing code before

Java code transform at compile time

只谈情不闲聊 提交于 2019-12-18 10:57:15
问题 I would like to transform java source code at compile time just before passing the source code to the compiler. In other word I would like to create a preprocessor able to transform "bla bla bla" into any other code such as: new MyClass("bla", 3) My actual motivation is to do string encryption, as explained here Some people suggest writing custom annotation processors but as far as I understand annotations: they can be used to generate new class file, but not to transform existing code before

Any advice for speeding up the compile time in Flex Builder 3?

倖福魔咒の 提交于 2019-12-18 10:56:30
问题 I run Flex Builder 3 on a mac and as my project grows - the compile time gets longer and longer and longer. I am using some SWC's and there is a fair amount of code but it shouldn't take minutes to build and crash daily should it? 回答1: In addition to the suggestions already mentioned, close any projects that you have open that you are not using. Rich click on the Project in the Navigator view and select "Close Unrelated Projects". Depending on how many projects you have open, this can lead to

How to statically link a library when compiling a python module extension

帅比萌擦擦* 提交于 2019-12-18 10:35:43
问题 I would like to modify a setup.py file such that the command "python setup.py build" compiles a C-based extension module that is statically (rather than dynamically) linked to a library. The extension is currently dynamically linked to a number of libraries. I would like to leave everything unchanged except for statically linking to just one library. I have successfully done this by manually modifying the call to gcc that distutils runs, although it required that I explicitly listed the

How do you export your finished application from Xcode?

笑着哭i 提交于 2019-12-18 10:19:20
问题 I feel silly for having to ask this. I've got an application to a point where I want to send someone a beta to test on their machine, but I don't know how to get Xcode to produce a .app file for me to send to them. Help? 回答1: This has changed in Xcode 4. Now Apps can be exported from the "Organizer" If you haven't already, you need to create an Archive . On the menu go to Product -> Archive Once you're in the Organizer - Archives screen click Share or Distribute... (Xcode 4.3.3 or newer) Then