Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] Binary output to cout on Windows"
2006 May 23
0
[LLVMdev] Binary output to cout on Windows
On Tue, 23 May 2006, Michael Smith wrote:
> The solution (provided in Microsoft's documentation) is to add:
> #include <cstdio>
> #include <io.h>
> #include <fcntl.h>
> and run:
> int result = _setmode( _fileno(stdin), _O_BINARY );
> if( result == -1 )
> { std::cerr<<"Cannot set input mode to binary."<<std::endl; return 1;
>
2006 May 23
1
[LLVMdev] Binary output to cout on Windows
Nothing really needs to be done on Unix, because to my knowledge Unix
doesn't differentiate between text and binary on stdin/stdout.
~Michael
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Reid Spencer
Sent: Tuesday, May 23, 2006 11:25 AM
To: LLVM Developers Mailing List
Subject: RE: [LLVMdev] Binary output to cout on
2006 Dec 07
7
[LLVMdev] #include <iostream>
Hi all,
With the newest patches to LLVM, there should be no reason for having
"#include <iostream>" in any library source code file, except for lib/
Support/Streams.cpp. Please use the following instead:
OLD NEW
--- ---
std::ostream llvm::OStream
std::istream llvm::IStream
std::cerr llvm::cerr
std::cerr llvm::cout
2006 May 22
1
[LLVMdev] Binary output to cout on Windows
Hi Reid,
llvm-as interprets "-" as using standard output (cout), so llvm-as <
input.ll -o - | opt has the same behavior. You'll actually find a
comment on it in llvm-as.cpp, so I guess I shouldn't hold out hope that
there's a good way to do it.
Michael
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of
2013 Jun 24
2
[OT] bash here documents
Suppose I have this C++ program:
#include <iostream>
int main (int argc, char** argv)
{
while (1)
{
char cmd[80];
std::cin.getline(cmd, 80);
std::cout << "response to " << cmd << std::endl;
}
}
compiled by: c++ -o junk junk.cpp
and I have this bash script:
#!/bin/bash
./junk <<EOF
blah
bleh
\cC
EOF
echo "Something
2006 Dec 08
0
[LLVMdev] #include <iostream>
On Thu, 7 Dec 2006, Bill Wendling wrote:
> With the newest patches to LLVM, there should be no reason for having
> "#include <iostream>" in any library source code file, except for lib/
> Support/Streams.cpp. Please use the following instead:
>
> OLD NEW
> --- ---
> std::ostream llvm::OStream
> std::istream
2003 Apr 29
4
Bug in g++ 2.95.4 (Pointer to member functions)
Hi,
I think I have discovered a bug in FreeBSD 4.8-STABLE's system C++ compiler:
% gcc -v
% Using builtin specs.
% gcc version 2.95.4 20020320 [FreeBSD]
Here is a stripped down example that can be used to reproduce the bug:
// ----------- begin bug.cpp -----------
#include <iostream>
class Class {
public:
void M1 (void) { cout << "M1" << endl; };
void M2
2008 Jan 11
1
Patch for OS/2 STDIN/STDOUT
Hi,
to make in/output on STDIN/STDOUT work on OS/2 this small patch is needed:
---cut---
diff -ruN o:src/speexdec.c src/speexdec.c
--- o:src/speexdec.c 2007-12-08 05:01:08.000000000 +0100
+++ src/speexdec.c 2008-01-12 00:48:00.000000000 +0100
@@ -231,6 +231,8 @@
{
#if defined WIN32 || defined _WIN32
_setmode(_fileno(stdout), _O_BINARY);
+#elif defined OS2
+
2013 Jan 14
2
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
Hello list,
I learned that under LLVM, #including of <iostream> is forbidden.
Instead LLVM provides llvm::raw_ostream(for std::cout, std::cerr) and
llvm::MemoryBuffer(for input stream).
And using of llvm::raw_ostream is pretty easy but for me learning of
how to use llvm::MemoryBuffer is pretty much difficult.
I found a good sample code; utils/yaml2obj/yaml2obj.cpp.
The function, main() in
2017 Apr 06
2
Zero length reported.
Hello - I have two files which play back in VLC correctly.
They were encoded using this command:
ffmpeg -y -i '/tmp/2e905b981d30324f9a0664cbabb3f59a20170406-21128-r0neh9.wav' -acodec libvorbis '/tmp/2e905b981d30324f9a0664cbabb3f59a20170406-21128-r0neh920170406-21128-146yyex.ogg
However ov_pcm_total reports a zero length for one of the two files. Is this a problem with my use of the
2017 Apr 06
2
Zero length reported.
Hello - I have two files which play back in VLC correctly.
They were encoded using this command:
ffmpeg -y -i '/tmp/2e905b981d30324f9a0664cbabb3f59a20170406-21128-r0neh9.wav' -acodec libvorbis '/tmp/2e905b981d30324f9a0664cbabb3f59a20170406-21128-r0neh920170406-21128-146yyex.ogg
However ov_pcm_total reports a zero length for one of the two files. Is this a problem with my use of the
2011 May 30
2
[LLVMdev] Expressiveness of column numbers in dwarf using clang 3.0?
Hi all,
I am processing DWARF line and column information in (x86 and ARM)
executables in order to produce a mapping from the machine instructions
back to the original source code (C/C++). Using the line numbers is
quite straightforward ("libdwarf" [1] is doing the work me.) But when
comparing the column numbers (extracted from the DWARF line table) with
the corresponding source
2014 Sep 01
2
[LLVMdev] Problem linking and JITing code through C++-API
I have a frontend that generates some LLVM bitcode that needs to be linked with other bitcode (its runtime library), which I generate from C++ source using Clang.
If I write the output of my program to disk, link it with llvm-link, and then run it with lli, everything works perfectly. But if I try to perform the linking and running steps in my main program, I get this error during
2013 Jan 15
2
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
Hi Justin Holewinski,
>> As far as I know, there is not a good way to implement user prompts with the LLVM APIs.
This info helps me a lot.
I tried to do a thing that is not possible.
Thank you very much.
Sincerely
Journeyer
2013/1/15 Justin Holewinski <justin.holewinski at gmail.com>:
> Is this for user prompts, or just reading data from stdin? You can use
>
2014 Sep 02
2
[LLVMdev] Problem linking and JITing code through C++-API
Yes. It appears that a bad reference to DataLayout was passed to MachineJumpTableInfo::getEntrySize. I'm using LLVM as a pre-compiled Ubuntu package for this work, so I can't do much more in GDB without building from source.
Program received signal SIGSEGV, Segmentation fault.
0x00000000007565f0 in llvm::MachineJumpTableInfo::getEntrySize(llvm::DataLayout const&) const ()
(gdb)
2011 May 31
3
[LLVMdev] Expressiveness of column numbers in dwarf using clang 3.0?
On 31.05.2011 19:22, Devang Patel wrote:
>
> On May 30, 2011, at 11:11 AM, trash-stuff at gmx.de
> <mailto:trash-stuff at gmx.de> wrote:
>
>> Hi all,
>>
>> I am processing DWARF line and column information in (x86 and ARM)
>> executables in order to produce a mapping from the machine
>> instructions back to the original source code (C/C++). Using
2014 Sep 08
2
[LLVMdev] Problem linking and JITing code through C++-API
Hi Andy,
It looks like you're using LLVM's old JIT, rather than MCJIT? The old JIT
has been removed from the mainline, and is no longer supported. I'd
recommend building your own copy of LLVM from the development branch (as
Reed suggested) where MCJIT is used by default - this may fix your issue.
If you want to stick with the precompiled binaries, then you should change:
#include
2010 Apr 06
2
[LLVMdev] Get the loop trip count variable
Thanks a lot for your guys' help!!!
I guess once I am able to get *V* (which probably is a pointer to a
Value object), then, I can instrument some code at the IR level to
dump V. As long as I maintain V at this pass stage, I should be able
to dump the loop trip count. This is true, isn't it?
Basically, what I am going to do is to add a function call before the
loop body, such as:
2017 Apr 11
1
[Vorbis-dev] Zero length reported.
Okay - so I stepped through the code slowly this morning making notes as I went.
And I can see what’s wrong. The last Ogg header of the troublesome file contains -1 as the granule position. The spec says this has a special meaning "A special value of '-1' (in two's complement) indicates that no packets finish on this page."
4F 67 67 53 00 04 FF FF FF FF FF FF FF FF 16 A2
2008 Dec 10
3
How to fix broken ogg/theora files
Hi there,
I haven't been on this list until now, so I wasn't aware of this problem until last night ;-) - sorry for that.
I am working on a patch for oggCut for that issue (looks good actually but I would like to do some testing befor I can release a patch.)
Normal players are not effected by the page time misordering, so I took this issue as "minor". The reason for the